forked from Minki/linux
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:
parent
b41bb28b9e
commit
e7a8ac4338
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user