diff options
| author | Mark Brown <broonie@kernel.org> | 2026-03-02 23:15:13 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-02 23:15:13 +0000 |
| commit | c26137d3a3a8168b49679e30cf3c08177bb2dbe7 (patch) | |
| tree | 6e6316d5c496617206ce2b8c0bf2dcca10230929 /drivers/base | |
| parent | 9ab637ac5d3826606947f4e861107da958eda324 (diff) | |
| parent | 11439c4635edd669ae435eec308f4ab8a0804808 (diff) | |
regmap: Merge up v7.0-rc2
This gets us a fix for KUnit execution which allows us to run the
testsuite again.
Diffstat (limited to 'drivers/base')
| -rw-r--r-- | drivers/base/property.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/drivers/base/property.c b/drivers/base/property.c index 6a63860579dd..8d9a34be57fb 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -797,7 +797,18 @@ struct fwnode_handle * fwnode_get_next_child_node(const struct fwnode_handle *fwnode, struct fwnode_handle *child) { - return fwnode_call_ptr_op(fwnode, get_next_child_node, child); + struct fwnode_handle *next; + + if (IS_ERR_OR_NULL(fwnode)) + return NULL; + + /* Try to find a child in primary fwnode */ + next = fwnode_call_ptr_op(fwnode, get_next_child_node, child); + if (next) + return next; + + /* When no more children in primary, continue with secondary */ + return fwnode_call_ptr_op(fwnode->secondary, get_next_child_node, child); } EXPORT_SYMBOL_GPL(fwnode_get_next_child_node); @@ -841,19 +852,7 @@ EXPORT_SYMBOL_GPL(fwnode_get_next_available_child_node); struct fwnode_handle *device_get_next_child_node(const struct device *dev, struct fwnode_handle *child) { - const struct fwnode_handle *fwnode = dev_fwnode(dev); - struct fwnode_handle *next; - - if (IS_ERR_OR_NULL(fwnode)) - return NULL; - - /* Try to find a child in primary fwnode */ - next = fwnode_get_next_child_node(fwnode, child); - if (next) - return next; - - /* When no more children in primary, continue with secondary */ - return fwnode_get_next_child_node(fwnode->secondary, child); + return fwnode_get_next_child_node(dev_fwnode(dev), child); } EXPORT_SYMBOL_GPL(device_get_next_child_node); |
