Commit 0cd98069 authored by Wolfram Sang's avatar Wolfram Sang

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: default avatarWolfram Sang <wsa@the-dreams.de>
parent 9937b8d8
...@@ -200,7 +200,7 @@ static int i2c_arbitrator_probe(struct platform_device *pdev) ...@@ -200,7 +200,7 @@ static int i2c_arbitrator_probe(struct platform_device *pdev)
arb->parent = of_find_i2c_adapter_by_node(parent_np); arb->parent = of_find_i2c_adapter_by_node(parent_np);
if (!arb->parent) { if (!arb->parent) {
dev_err(dev, "Cannot find parent bus\n"); dev_err(dev, "Cannot find parent bus\n");
return -EINVAL; return -EPROBE_DEFER;
} }
/* Actually add the mux adapter */ /* Actually add the mux adapter */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment