powerpc/powernv: Check OPAL dump calls exist before using
authorMichael Neuling <mikey@neuling.org>
Tue, 19 Aug 2014 04:48:02 +0000 (14:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Sep 2014 13:14:36 +0000 (23:14 +1000)
commit831cf65b0295de75f40f8cf52ce62e5d261dab4f
tree18875a103cc4bce755cc76ba05a0942ac07cec54
parent7dc992ec7b3fd875b05f49f454a922ee94af330b
powerpc/powernv: Check OPAL dump calls exist before using

Check that the OPAL_DUMP_READ token exists before initalising the elog
infrastructure.

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

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