Patchwork i2c: i2c-arb-gpio-challenge: use deferred probe when adapter not found

login
register
mail settings
Submitter Wolfram Sang
Date Oct. 10, 2013, 8:25 a.m.
Message ID <1381393663-17511-1-git-send-email-wsa@the-dreams.de>
Download mbox | patch
Permalink /patch/282169/
State Accepted
Headers show

Comments

Wolfram Sang - Oct. 10, 2013, 8:25 a.m.
If it is not there yet, it might appear later.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/i2c/muxes/i2c-arb-gpio-challenge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c
index 74b41ae..928656e 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 */