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>
This commit is contained in:
parent
9937b8d89e
commit
0cd98069ad
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user