mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 04:51:17 +02:00
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>
This commit is contained in:
@@ -50,7 +50,7 @@ unsigned long notrace timer_get_rate(struct udevice *dev)
|
||||
|
||||
static int timer_pre_probe(struct udevice *dev)
|
||||
{
|
||||
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
#if CONFIG_IS_ENABLED(OF_REAL)
|
||||
struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev);
|
||||
struct clk timer_clk;
|
||||
int err;
|
||||
@@ -136,7 +136,7 @@ int notrace dm_timer_init(void)
|
||||
if (gd->dm_root == NULL)
|
||||
return -EAGAIN;
|
||||
|
||||
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
#if CONFIG_IS_ENABLED(OF_REAL)
|
||||
/* Check for a chosen timer to be used for tick */
|
||||
node = ofnode_get_chosen_node("tick-timer");
|
||||
|
||||
|
Reference in New Issue
Block a user