powerpc/powernv/flash: Check OPAL flash calls exist before using
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>
Tue, 14 Sep 2021 10:16:30 +0000 (15:46 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:59:54 +0000 (15:59 +1000)
commit25e69962efdbbbd8bf52e6b4d7852c49717923a2
tree3ba778effcb1547843657b483dfde4a0d87a8a55
parentbb12dd42d20f5513a8d1da225232af0a0743fd79
powerpc/powernv/flash: Check OPAL flash calls exist before using

Currently only FSP based powernv systems supports firmware update
interfaces. Hence check that the token OPAL_FLASH_VALIDATE exists
before initalising the flash driver.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210914101630.30613-1-hegdevasant@linux.vnet.ibm.com
arch/powerpc/platforms/powernv/opal-flash.c