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>
This commit is contained in:
parent
85cd7c245c
commit
e405c27294
|
@ -115,11 +115,9 @@ void pmh7_register_write(int reg, int val)
|
||||||
outb(val, EC_LENOVO_PMH7_DATA);
|
outb(val, EC_LENOVO_PMH7_DATA);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef __PRE_RAM__
|
|
||||||
#ifndef __SMM__
|
|
||||||
static void enable_dev(struct device *dev)
|
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;
|
struct resource *resource;
|
||||||
u8 val;
|
u8 val;
|
||||||
|
|
||||||
|
@ -150,5 +148,3 @@ struct chip_operations ec_lenovo_pmh7_ops = {
|
||||||
CHIP_NAME("Lenovo Power Management Hardware Hub 7")
|
CHIP_NAME("Lenovo Power Management Hardware Hub 7")
|
||||||
.enable_dev = enable_dev,
|
.enable_dev = enable_dev,
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue