mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] OF: gpio: drop duplicate of_device_ensure_probed
@ 2021-06-28  7:03 Ahmad Fatoum
  2021-06-28 20:42 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2021-06-28  7:03 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

of_find_device_by_node already calls of_device_ensure_probed
first thing, so drop the first instance.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/of/of_gpio.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/of/of_gpio.c b/drivers/of/of_gpio.c
index 8c45bba8c16c..e1cafdc8489e 100644
--- a/drivers/of/of_gpio.c
+++ b/drivers/of/of_gpio.c
@@ -70,10 +70,6 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname,
 		return ret;
 	}
 
-	ret = of_device_ensure_probed(out_args.np);
-	if (ret)
-		return ret;
-
 	dev = of_find_device_by_node(out_args.np);
 	if (!dev) {
 		pr_debug("%s: unable to find device of node %s\n",
-- 
2.30.2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


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

end of thread, other threads:[~2021-06-28 20:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28  7:03 [PATCH] OF: gpio: drop duplicate of_device_ensure_probed Ahmad Fatoum
2021-06-28 20:42 ` Sascha Hauer

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