powerpc/nvdimm: Use HCALL error as the return value
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 3 Sep 2019 12:34:51 +0000 (18:04 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Sep 2019 22:32:59 +0000 (08:32 +1000)
commit4111cdef0e871c0f7c8874b19ee68a3671f7d63e
tree741bbfa3367f255495dce3ccf1d656bc9d9e64db
parent93cad5f789951eaa27c3392b15294b4e51253944
powerpc/nvdimm: Use HCALL error as the return value

This simplifies the error handling and also enable us to switch to
H_SCM_QUERY hcall in a later patch on H_OVERLAP error.

We also do some kernel print formatting fixup in this patch.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190903123452.28620-1-aneesh.kumar@linux.ibm.com
arch/powerpc/platforms/pseries/papr_scm.c