Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34923 )
Change subject: lenovo/pmh7: Remove use of #ifndef __PRE_RAM__ ......................................................................
lenovo/pmh7: Remove use of #ifndef __PRE_RAM__
Change-Id: Ib74c5c8cb9197fa06b2972cb96337fedd7f85b5b Signed-off-by: Kyösti Mälkki kyosti.malkki@gmail.com --- M src/ec/lenovo/pmh7/pmh7.c 1 file changed, 1 insertion(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/34923/1
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