Kyösti Mälkki has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/34923 )
Change subject: lenovo/pmh7: Remove use of __PRE_RAM__ and __SMM__ ......................................................................
lenovo/pmh7: Remove use of __PRE_RAM__ and __SMM__
Change-Id: Ib74c5c8cb9197fa06b2972cb96337fedd7f85b5b Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/34923 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Marshall Dawson marshalldawson3rd@gmail.com --- M src/ec/lenovo/pmh7/pmh7.c 1 file changed, 1 insertion(+), 5 deletions(-)
Approvals: build bot (Jenkins): Verified Marshall Dawson: Looks good to me, approved
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c index 30de6fe..9dd668f 100644 --- a/src/ec/lenovo/pmh7/pmh7.c +++ b/src/ec/lenovo/pmh7/pmh7.c @@ -115,11 +115,9 @@ outb(val, EC_LENOVO_PMH7_DATA); }
-#ifndef __PRE_RAM__ -#ifndef __SMM__ static void enable_dev(struct device *dev) { - struct ec_lenovo_pmh7_config *conf = dev->chip_info; + const struct ec_lenovo_pmh7_config *conf = dev->chip_info; struct resource *resource; u8 val;
@@ -150,5 +148,3 @@ CHIP_NAME("Lenovo Power Management Hardware Hub 7") .enable_dev = enable_dev, }; -#endif -#endif