[U-Boot] [PATCH] uclass: Use uclass_foreach_dev() macro instead of open coding
Liviu Dudau
Liviu.Dudau at foss.arm.com
Mon Sep 17 16:44:04 UTC 2018
Use the uclass_foreach_dev() macro instead of the open coded version.
Signed-off-by: Liviu Dudau <liviu.dudau at foss.arm.com>
---
drivers/core/uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index 3113d6a56b..081571951d 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -337,7 +337,7 @@ int uclass_find_device_by_ofnode(enum uclass_id id, ofnode node,
if (ret)
return ret;
- list_for_each_entry(dev, &uc->dev_head, uclass_node) {
+ uclass_foreach_dev(dev, uc) {
log(LOGC_DM, LOGL_DEBUG_CONTENT, " - checking %s\n",
dev->name);
if (ofnode_equal(dev_ofnode(dev), node)) {
--
2.18.0
More information about the U-Boot
mailing list