mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] device property: Fix recent breakage of fwnode_get_next_parent_dev()
@ 2022-04-29 23:43 Douglas Anderson
  2022-04-30  0:34 ` Saravana Kannan
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Douglas Anderson @ 2022-04-29 23:43 UTC (permalink / raw)
  To: Rafael J . Wysocki
  Cc: swboyd, Andy Shevchenko, freedreno, Saravana Kannan,
	Bjorn Andersson, Sakari Ailus, linux-arm-msm, Douglas Anderson,
	Daniel Scally, Greg Kroah-Hartman, Heikki Krogerus,
	Rafael J. Wysocki, linux-acpi, linux-kernel

Due to a subtle typo, instead of commit 87ffea09470d ("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: 87ffea09470d ("device property: Introduce fwnode_for_each_parent_node()")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---

 drivers/base/property.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/base/property.c b/drivers/base/property.c
index 36401cfe432c..52e85dcb20b5 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;
-- 
2.36.0.464.gb9c8b46e94-goog


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-05-14  5:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 23:43 [PATCH] device property: Fix recent breakage of fwnode_get_next_parent_dev() Douglas Anderson
2022-04-30  0:34 ` Saravana Kannan
2022-04-30 20:21 ` Sakari Ailus
2022-05-01  7:49 ` Andy Shevchenko
2022-05-05 12:20   ` Rafael J. Wysocki
2022-05-14  3:58     ` Saravana Kannan
2022-05-14  5:47       ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®