diff options
author | Sean Anderson <seanga2@gmail.com> | 2022-03-30 12:26:40 -0400 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-06-28 03:09:51 +0100 |
commit | 501a9a7ed803ac948adb392e541f9da9bafad60e (patch) | |
tree | ba8d53d511cc84bebb3aa93ade42d8af350237cd /drivers/core/devres.c | |
parent | 8b52f237f0f8ae63c930fa8459c39ab87367bad1 (diff) |
dm: core: Use device_foreach_child where possible
We have some nice macros for iterating over devices in device.h, but they
are not used by the driver core. Convert all the users I could find.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Diffstat (limited to 'drivers/core/devres.c')
-rw-r--r-- | drivers/core/devres.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/devres.c b/drivers/core/devres.c index 313ddc7089..78914bdf7f 100644 --- a/drivers/core/devres.c +++ b/drivers/core/devres.c @@ -232,7 +232,7 @@ static void dump_resources(struct udevice *dev, int depth) (unsigned long)dr->size, dr->name, devres_phase_name[dr->phase]); - list_for_each_entry(child, &dev->child_head, sibling_node) + device_foreach_child(child, dev) dump_resources(child, depth + 1); } |