1
0
Fork 0

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
Clark Wang 2019-08-20 20:45:12 +08:00 committed by Dong Aisheng
parent f2b8850526
commit 815085e823
1 changed files with 3 additions and 0 deletions

View File

@ -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;