]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/powernv: Check OPAL RTC calls exists before using
authorMichael Neuling <mikey@neuling.org>
Tue, 19 Aug 2014 04:48:00 +0000 (14:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Sep 2014 13:14:35 +0000 (23:14 +1000)
commit035ed26fb090ff3277900259f19d57e54da2e116
tree9af68eea506a739905892a3050a4c89a3b289f46
parentbffe6bda342578deea0b74f2d9cb97cc40585a1b
powerpc/powernv: Check OPAL RTC calls exists before using

Check that the OPAL_RTC_READ token exists before we use the OPAL RTC.

Refactors the code a little to merge error paths.

This avoids littering the OPAL console with:
  "OPAL: Called with bad token 3".

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal-rtc.c