diff options
author | Anju T Sudhakar <anju@linux.vnet.ibm.com> | 2018-05-22 14:42:36 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-06-03 20:43:37 +1000 |
commit | e7a8ac433845aa86f39bf404ae4b7709f21c7d70 (patch) | |
tree | eb0a4504da63d884164e53a9471d05dd66403df4 /arch/powerpc/perf | |
parent | b41bb28b9ea22e7c22a95456c085e5b943c3fe8d (diff) | |
download | linux-stable-e7a8ac433845aa86f39bf404ae4b7709f21c7d70.tar.gz linux-stable-e7a8ac433845aa86f39bf404ae4b7709f21c7d70.tar.bz2 linux-stable-e7a8ac433845aa86f39bf404ae4b7709f21c7d70.zip |
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>
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r-- | arch/powerpc/perf/imc-pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c index 61000d174dbd..f563d30292ad 100644 --- a/arch/powerpc/perf/imc-pmu.c +++ b/arch/powerpc/perf/imc-pmu.c @@ -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); |