summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_path.c
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2019-10-30 18:04:55 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-11-04 10:40:33 +0100
commitcd6b02211852fa753b6a527af227aafd9d5088d4 (patch)
tree5e1b0dc8224ed56a1fb50b0ccd93e38cec7baee3 /drivers/of/of_path.c
parent3b81d1199347b2fd250d72bb4df39e15f975b6ed (diff)
downloadbarebox-cd6b02211852fa753b6a527af227aafd9d5088d4.tar.gz
barebox-cd6b02211852fa753b6a527af227aafd9d5088d4.tar.xz
of: of_path: fix return in case of EPROBE_DEFER
As said in commit 82eb3dff10 ("of_path: handle no driver for device") this case happens if the driver isn't probed yet. So we should return -EPROBE_DEFER to signal that. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of/of_path.c')
-rw-r--r--drivers/of/of_path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/of_path.c b/drivers/of/of_path.c
index f8bbf2cba1..5c3a020345 100644
--- a/drivers/of/of_path.c
+++ b/drivers/of/of_path.c
@@ -83,7 +83,7 @@ static int __of_find_path(struct device_node *node, const char *part, char **out
}
if (dev->bus && !dev->driver)
- return -ENODEV;
+ return -EPROBE_DEFER;
device_detect(dev);