You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
867 B
Diff
24 lines
867 B
Diff
From 8bfccd1f7b096d5e5a6db2cda9d5e983b4422da2 Mon Sep 17 00:00:00 2001
|
|
From: Ioana Radulescu <ruxandra.radulescu@nxp.com>
|
|
Date: Wed, 29 Nov 2017 17:39:05 +0200
|
|
Subject: [PATCH] staging: fsl-dpaa2/mac: defer probe if no mc portal is found
|
|
|
|
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
|
|
---
|
|
drivers/staging/fsl-dpaa2/mac/mac.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/staging/fsl-dpaa2/mac/mac.c
|
|
+++ b/drivers/staging/fsl-dpaa2/mac/mac.c
|
|
@@ -494,8 +494,8 @@ static int dpaa2_mac_probe(struct fsl_mc
|
|
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;
|
|
}
|
|
|