[PATCH] OF: gpio: drop duplicate of_device_ensure_probed
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jun 28 00:03:07 PDT 2021
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 at 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
More information about the barebox
mailing list