summaryrefslogtreecommitdiffstats
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:34 +0200
commit0cd98069ad7acb2a1bdb1bb71b904c1aae0033d0 (patch)
treeeb964eef9773bfccf634487773593e2027d83e43
parenti2c: i2c-mux-gpio: use deferred probing (diff)
downloadlinux-0cd98069ad7acb2a1bdb1bb71b904c1aae0033d0.tar.xz
linux-0cd98069ad7acb2a1bdb1bb71b904c1aae0033d0.zip
i2c: i2c-arb-gpio-challenge: 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>
-rw-r--r--drivers/i2c/muxes/i2c-arb-gpio-challenge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
index 74b41ae690f3..928656e241dd 100644
--- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
+++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
@@ -200,7 +200,7 @@ static int i2c_arbitrator_probe(struct platform_device *pdev)
arb->parent = of_find_i2c_adapter_by_node(parent_np);
if (!arb->parent) {
dev_err(dev, "Cannot find parent bus\n");
- return -EINVAL;
+ return -EPROBE_DEFER;
}
/* Actually add the mux adapter */