Skip to content

Commit 0cd9806

Browse files
author
Wolfram Sang
committed
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 <[email protected]>
1 parent 9937b8d commit 0cd9806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/muxes/i2c-arb-gpio-challenge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static int i2c_arbitrator_probe(struct platform_device *pdev)
200200
arb->parent = of_find_i2c_adapter_by_node(parent_np);
201201
if (!arb->parent) {
202202
dev_err(dev, "Cannot find parent bus\n");
203-
return -EINVAL;
203+
return -EPROBE_DEFER;
204204
}
205205

206206
/* Actually add the mux adapter */

0 commit comments

Comments
 (0)