]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf47eea1e4cce866498bbff53a37687ae89f249d2
tree3ba778effcb1547843657b483dfde4a0d87a8a55
parent57f091bb234da06863b4295be85bdc0406803d7f
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