Commit 117ef574 authored by Douglas Anderson's avatar Douglas Anderson Committed by Rafael J. Wysocki

device property: Fix recent breakage of fwnode_get_next_parent_dev()

Due to a subtle typo, instead of commit 87ffea09 ("device
property: Introduce fwnode_for_each_parent_node()") being a no-op
change, it ended up causing the display on my sc7180-trogdor-lazor
device from coming up unless I added "fw_devlink=off" to my kernel
command line. Fix the typo.

Fixes: 87ffea09 ("device property: Introduce fwnode_for_each_parent_node()")
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Reviewed-by: default avatarSaravana Kannan <saravanak@google.com>
Reviewed-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 022fe6bc
...@@ -600,7 +600,7 @@ struct device *fwnode_get_next_parent_dev(struct fwnode_handle *fwnode) ...@@ -600,7 +600,7 @@ struct device *fwnode_get_next_parent_dev(struct fwnode_handle *fwnode)
struct device *dev; struct device *dev;
fwnode_for_each_parent_node(fwnode, parent) { fwnode_for_each_parent_node(fwnode, parent) {
dev = get_dev_from_fwnode(fwnode); dev = get_dev_from_fwnode(parent);
if (dev) { if (dev) {
fwnode_handle_put(parent); fwnode_handle_put(parent);
return dev; return dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment