summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-mc/bus/fsl-mc-bus.c
diff options
context:
space:
mode:
authorNipun Gupta2017-12-11 16:45:38 +0100
committerGreg Kroah-Hartman2017-12-13 12:40:41 +0100
commit9c70dbd0850f15cc11a888b5a2e3378572fd4bf6 (patch)
tree27a37b3f5f3e0d559cede1eb5f6b92c1f0bafd5f /drivers/staging/fsl-mc/bus/fsl-mc-bus.c
parentstaging: fsl-mc: Allocate IRQ's before scanning DPRC objects (diff)
downloadkernel-qcow2-linux-9c70dbd0850f15cc11a888b5a2e3378572fd4bf6.tar.gz
kernel-qcow2-linux-9c70dbd0850f15cc11a888b5a2e3378572fd4bf6.tar.xz
kernel-qcow2-linux-9c70dbd0850f15cc11a888b5a2e3378572fd4bf6.zip
staging: fsl-mc: do not print error in case of defer probe error
Devices on MC bus can be deferred because of dependencies on other modules (such as IOMMU). Those are not the actual errors; as probing is again done by the kernel at later stages. So this patch avoids the error print in such case. Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fsl-mc/bus/fsl-mc-bus.c')
-rw-r--r--drivers/staging/fsl-mc/bus/fsl-mc-bus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c
index f15bab32fb2f..664cc8cbae65 100644
--- a/drivers/staging/fsl-mc/bus/fsl-mc-bus.c
+++ b/drivers/staging/fsl-mc/bus/fsl-mc-bus.c
@@ -228,7 +228,8 @@ static int fsl_mc_driver_probe(struct device *dev)
error = mc_drv->probe(mc_dev);
if (error < 0) {
- dev_err(dev, "%s failed: %d\n", __func__, error);
+ if (error != -EPROBE_DEFER)
+ dev_err(dev, "%s failed: %d\n", __func__, error);
return error;
}