mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
dm: core: Rename dev_has_of_node() to dev_has_ofnode()
We use 'ofnode' rather than 'of_node' in U-Boot. Rename this function to fit. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
156004f863
commit
c23405f817
5 changed files with 5 additions and 5 deletions
|
@ -406,7 +406,7 @@ int device_of_to_plat(struct udevice *dev)
|
|||
assert(drv);
|
||||
|
||||
if (drv->of_to_plat &&
|
||||
(CONFIG_IS_ENABLED(OF_PLATDATA) || dev_has_of_node(dev))) {
|
||||
(CONFIG_IS_ENABLED(OF_PLATDATA) || dev_has_ofnode(dev))) {
|
||||
ret = drv->of_to_plat(dev);
|
||||
if (ret)
|
||||
goto fail;
|
||||
|
|
|
@ -3752,7 +3752,7 @@ static int octeontx_mmc_host_probe(struct udevice *dev)
|
|||
host->dev = dev;
|
||||
debug("%s(%s): Base address: %p\n", __func__, dev->name,
|
||||
host->base_addr);
|
||||
if (!dev_has_of_node(dev)) {
|
||||
if (!dev_has_ofnode(dev)) {
|
||||
pr_err("%s: No device tree information found\n", __func__);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -305,7 +305,7 @@ int pinctrl_select_state(struct udevice *dev, const char *statename)
|
|||
* Some device which is logical like mmc.blk, do not have
|
||||
* a valid ofnode.
|
||||
*/
|
||||
if (!dev_has_of_node(dev))
|
||||
if (!dev_has_ofnode(dev))
|
||||
return 0;
|
||||
/*
|
||||
* Try full-implemented pinctrl first.
|
||||
|
|
|
@ -517,7 +517,7 @@ static ofnode usb_get_ofnode(struct udevice *hub, int port)
|
|||
ofnode node;
|
||||
u32 reg;
|
||||
|
||||
if (!dev_has_of_node(hub))
|
||||
if (!dev_has_ofnode(hub))
|
||||
return ofnode_null();
|
||||
|
||||
/*
|
||||
|
|
|
@ -200,7 +200,7 @@ static inline int dev_of_offset(const struct udevice *dev)
|
|||
return ofnode_to_offset(dev->node);
|
||||
}
|
||||
|
||||
static inline bool dev_has_of_node(struct udevice *dev)
|
||||
static inline bool dev_has_ofnode(struct udevice *dev)
|
||||
{
|
||||
return ofnode_valid(dev->node);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue