powerpc/perf: Return appropriate value for unknown domain

Return proper error code for unknown domain during IMC initialization.

Signed-off-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Reviewed-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Anju T Sudhakar 2018-05-22 14:42:36 +05:30 committed by Michael Ellerman
parent b41bb28b9e
commit e7a8ac4338

View File

@ -1371,7 +1371,7 @@ int init_imc_pmu(struct device_node *parent, struct imc_pmu *pmu_ptr, int pmu_id
break;
default:
return -1; /* Unknown domain */
return -EINVAL; /* Unknown domain */
}
ret = update_events_in_group(parent, pmu_ptr);