diff options
Diffstat (limited to 'src/ec')
-rw-r--r-- | src/ec/lenovo/pmh7/pmh7.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c index 30de6fe949..9dd668fd75 100644 --- a/src/ec/lenovo/pmh7/pmh7.c +++ b/src/ec/lenovo/pmh7/pmh7.c @@ -115,11 +115,9 @@ void pmh7_register_write(int reg, int val) 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 @@ struct chip_operations ec_lenovo_pmh7_ops = { CHIP_NAME("Lenovo Power Management Hardware Hub 7") .enable_dev = enable_dev, }; -#endif -#endif |