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/core/device.c | |
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/core/device.c')
-rw-r--r-- | drivers/core/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index 29668f6..42ba2dc 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -670,7 +670,7 @@ static int device_get_device_tail(struct udevice *dev, int ret, return 0; } -#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) +#if CONFIG_IS_ENABLED(OF_REAL) /** * device_find_by_ofnode() - Return device associated with given ofnode * @@ -1074,7 +1074,7 @@ void dev_set_uclass_plat(struct udevice *dev, void *uclass_plat) dev->uclass_plat_ = uclass_plat; } -#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA) +#if CONFIG_IS_ENABLED(OF_REAL) bool device_is_compatible(const struct udevice *dev, const char *compat) { return ofnode_device_is_compatible(dev_ofnode(dev), compat); |