diff --git a/drivers/base/property.c b/drivers/base/property.c index 36401cfe432c3dda28430116430d340434fdb096..52e85dcb20b58a5d9a751710d14621c6362b476c 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -600,7 +600,7 @@ struct device *fwnode_get_next_parent_dev(struct fwnode_handle *fwnode) struct device *dev; fwnode_for_each_parent_node(fwnode, parent) { - dev = get_dev_from_fwnode(fwnode); + dev = get_dev_from_fwnode(parent); if (dev) { fwnode_handle_put(parent); return dev;