powerpc/powernv: convert OPAL codes returned by sysparam calls
authorCédric Le Goater <clg@fr.ibm.com>
Wed, 8 Apr 2015 07:31:10 +0000 (09:31 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jun 2015 12:27:56 +0000 (22:27 +1000)
commit14aae78f084af5241476ede8e28b377fc751b191
treebdea26e961e2bddd5f00aa31a94b606f676fb189
parent6f7f0b3df6d49316c6f27390bb5ec250255be548
powerpc/powernv: convert OPAL codes returned by sysparam calls

The opal_{get,set}_param calls return internal error codes which need
to be translated in errnos in Linux.

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-sysparam.c
arch/powerpc/platforms/powernv/opal.c