diff options
author | Marco Felsch <m.felsch@pengutronix.de> | 2019-10-30 18:04:55 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-04 10:40:33 +0100 |
commit | cd6b02211852fa753b6a527af227aafd9d5088d4 (patch) | |
tree | 5e1b0dc8224ed56a1fb50b0ccd93e38cec7baee3 | |
parent | 3b81d1199347b2fd250d72bb4df39e15f975b6ed (diff) | |
download | barebox-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>
-rw-r--r-- | drivers/of/of_path.c | 2 |
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); |