083e7427ad683d2cc5bcd8e138fb6659d0294605
[openwrt/openwrt.git] /
1 From 8bfccd1f7b096d5e5a6db2cda9d5e983b4422da2 Mon Sep 17 00:00:00 2001
2 From: Ioana Radulescu <ruxandra.radulescu@nxp.com>
3 Date: Wed, 29 Nov 2017 17:39:05 +0200
4 Subject: [PATCH] staging: fsl-dpaa2/mac: defer probe if no mc portal is found
5
6 Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
7 ---
8 drivers/staging/fsl-dpaa2/mac/mac.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/drivers/staging/fsl-dpaa2/mac/mac.c
12 +++ b/drivers/staging/fsl-dpaa2/mac/mac.c
13 @@ -494,8 +494,8 @@ static int dpaa2_mac_probe(struct fsl_mc
14 err = fsl_mc_portal_allocate(mc_dev, FSL_MC_IO_ATOMIC_CONTEXT_PORTAL,
15 &mc_dev->mc_io);
16 if (err || !mc_dev->mc_io) {
17 - dev_err(dev, "fsl_mc_portal_allocate error: %d\n", err);
18 - err = -ENODEV;
19 + dev_dbg(dev, "fsl_mc_portal_allocate error: %d\n", err);
20 + err = -EPROBE_DEFER;
21 goto err_free_netdev;
22 }
23