i2c: rpmsg-imx: add defer probe for rpbus
Add defer probe when rpbus probe, so if the rpmsg channel is not created, the rpbus will try to probe later. Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
f2b8850526
commit
815085e823
|
@ -379,6 +379,9 @@ static int i2c_rpbus_probe(struct platform_device *pdev)
|
|||
struct i2c_adapter *adapter;
|
||||
int ret;
|
||||
|
||||
if (!i2c_rpmsg.rpdev)
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata), GFP_KERNEL);
|
||||
if (!rdata)
|
||||
return -ENOMEM;
|
||||
|
|
Loading…
Reference in New Issue