1
0
Fork 0

staging: fsl-dpaa2/mac: defer probe if no mc portal is found

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Ioana Radulescu 2017-11-29 17:39:05 +02:00 committed by Dong Aisheng
parent 7038d1de65
commit 64b3a33fcd
1 changed files with 2 additions and 2 deletions

View File

@ -494,8 +494,8 @@ static int dpaa2_mac_probe(struct fsl_mc_device *mc_dev)
err = fsl_mc_portal_allocate(mc_dev, FSL_MC_IO_ATOMIC_CONTEXT_PORTAL,
&mc_dev->mc_io);
if (err || !mc_dev->mc_io) {
dev_err(dev, "fsl_mc_portal_allocate error: %d\n", err);
err = -ENODEV;
dev_dbg(dev, "fsl_mc_portal_allocate error: %d\n", err);
err = -EPROBE_DEFER;
goto err_free_netdev;
}