powerpc/powernv: only register log if OPAL supports doing so
authorStewart Smith <stewart@linux.vnet.ibm.com>
Thu, 12 Feb 2015 05:25:27 +0000 (16:25 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 16 Mar 2015 07:50:13 +0000 (18:50 +1100)
commitb962f5a446d8cf4f313a2cef728e7e71b2f20811
tree20829337de6fa4b4a6a3f77a751218077dc6d668
parentdf99e6eb3f5279a211ee50b2321357c0d9ed8224
powerpc/powernv: only register log if OPAL supports doing so

Correct use of REGISTER/UNREGISTER is to check if the token exists
before calling. If we don't we get a "OPAL: Called with bad token 101 !"
error, which is harmless but may be alarming to some.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c