diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-07 07:24:04 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-09-25 09:46:15 -0600 |
commit | 95397385091da9d0d3acd7e69199ae23114ac22c (patch) | |
tree | 6e1aae135d09408f32f16c8195e1af185a5b132b /drivers/timer/rockchip_timer.c | |
parent | 414cc15144f69b66d12aa8881192e34862bc6042 (diff) | |
download | u-boot-95397385091da9d0d3acd7e69199ae23114ac22c.zip u-boot-95397385091da9d0d3acd7e69199ae23114ac22c.tar.gz u-boot-95397385091da9d0d3acd7e69199ae23114ac22c.tar.bz2 |
treewide: Use OF_REAL instead of !OF_PLATDATA
Now that we have a 'positive' Kconfig option, use this instead of the
negative one, which is harder to understand.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/timer/rockchip_timer.c')
-rw-r--r-- | drivers/timer/rockchip_timer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/timer/rockchip_timer.c b/drivers/timer/rockchip_timer.c index 18c6145..9662147 100644 --- a/drivers/timer/rockchip_timer.c +++ b/drivers/timer/rockchip_timer.c @@ -55,7 +55,7 @@ ulong timer_get_boot_us(void) /* The timer is available */ rate = timer_get_rate(gd->timer); timer_get_count(gd->timer, &ticks); -#if !CONFIG_IS_ENABLED(OF_PLATDATA) +#if CONFIG_IS_ENABLED(OF_REAL) } else if (ret == -EAGAIN) { /* We have been called so early that the DM is not ready,... */ ofnode node = offset_to_ofnode(-1); @@ -100,7 +100,7 @@ static u64 rockchip_timer_get_count(struct udevice *dev) static int rockchip_clk_of_to_plat(struct udevice *dev) { -#if !CONFIG_IS_ENABLED(OF_PLATDATA) +#if CONFIG_IS_ENABLED(OF_REAL) struct rockchip_timer_priv *priv = dev_get_priv(dev); priv->timer = dev_read_addr_ptr(dev); |