summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2013-10-10 10:19:13 +0200
committerWolfram Sang <wsa@the-dreams.de>2013-10-10 10:22:35 +0200
commit2737de460e33df89461a59b247d3bfd477101785 (patch)
tree5cfa9e816f89825d7657b180c0873317fc7c48bd /drivers
parent0cd98069ad7acb2a1bdb1bb71b904c1aae0033d0 (diff)
downloadlinux-2737de460e33df89461a59b247d3bfd477101785.tar.gz
linux-2737de460e33df89461a59b247d3bfd477101785.tar.bz2
linux-2737de460e33df89461a59b247d3bfd477101785.zip
i2c: i2c-mux-pinctrl: use deferred probe when adapter not found
If it is not there yet, it might appear later. Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i2c/muxes/i2c-mux-pinctrl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c
index 69a91732ae65..68a37157377d 100644
--- a/drivers/i2c/muxes/i2c-mux-pinctrl.c
+++ b/drivers/i2c/muxes/i2c-mux-pinctrl.c
@@ -113,7 +113,7 @@ static int i2c_mux_pinctrl_parse_dt(struct i2c_mux_pinctrl *mux,
adapter = of_find_i2c_adapter_by_node(adapter_np);
if (!adapter) {
dev_err(mux->dev, "Cannot find parent bus\n");
- return -ENODEV;
+ return -EPROBE_DEFER;
}
mux->pdata->parent_bus_num = i2c_adapter_id(adapter);
put_device(&adapter->dev);
@@ -211,7 +211,7 @@ static int i2c_mux_pinctrl_probe(struct platform_device *pdev)
if (!mux->parent) {
dev_err(&pdev->dev, "Parent adapter (%d) not found\n",
mux->pdata->parent_bus_num);
- ret = -ENODEV;
+ ret = -EPROBE_DEFER;
goto err;
}