diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-07 07:24:03 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-09-25 09:46:15 -0600 |
commit | 414cc15144f69b66d12aa8881192e34862bc6042 (patch) | |
tree | 07a154a1f32dca9f051e5809fa70d8a81b4b324f /drivers/power/domain | |
parent | eaad01a3d018a8a5b1003ab2d28e9e23e2b2db3f (diff) | |
download | u-boot-414cc15144f69b66d12aa8881192e34862bc6042.zip u-boot-414cc15144f69b66d12aa8881192e34862bc6042.tar.gz u-boot-414cc15144f69b66d12aa8881192e34862bc6042.tar.bz2 |
treewide: Simply conditions with the new OF_REAL
Use this new Kconfig to simplify the compilation conditions where
appropriate.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power/domain')
-rw-r--r-- | drivers/power/domain/power-domain-uclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/domain/power-domain-uclass.c b/drivers/power/domain/power-domain-uclass.c index 00d1489..33f9206 100644 --- a/drivers/power/domain/power-domain-uclass.c +++ b/drivers/power/domain/power-domain-uclass.c @@ -112,7 +112,7 @@ int power_domain_off(struct power_domain *power_domain) return ops->off(power_domain); } -#if (CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)) +#if CONFIG_IS_ENABLED(OF_REAL) static int dev_power_domain_ctrl(struct udevice *dev, bool on) { struct power_domain pd; @@ -162,7 +162,7 @@ int dev_power_domain_off(struct udevice *dev) { return dev_power_domain_ctrl(dev, false); } -#endif +#endif /* OF_REAL */ UCLASS_DRIVER(power_domain) = { .id = UCLASS_POWER_DOMAIN, |