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

Signed-off-by: Ahmad Fatoum <[email protected]>
---
 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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to