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
6 Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
8 drivers/staging/fsl-dpaa2/mac/mac.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
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,
16 if (err || !mc_dev->mc_io) {
17 - dev_err(dev, "fsl_mc_portal_allocate error: %d\n", err);
19 + dev_dbg(dev, "fsl_mc_portal_allocate error: %d\n", err);
20 + err = -EPROBE_DEFER;