summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-17 05:28:38 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-08-20 08:41:33 +0000
commite405c272945ef8514c3f0283e3a4ebd0b87be0ed (patch)
treebdf086149ca9f9ec5bba6993be73804e07b65db3
parent85cd7c245cb9ccf085ed198d89fc2a3413e86d12 (diff)
downloadcoreboot-e405c272945ef8514c3f0283e3a4ebd0b87be0ed.tar.xz
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>
-rw-r--r--src/ec/lenovo/pmh7/pmh7.c6
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