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
parent
7038d1de65
commit
64b3a33fcd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue