[PATCH] OF: gpio: drop duplicate of_device_ensure_probed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux