The driver core already emits an error message when probe fails, see
call_driver_probe() in drivers/base/dd.c. So drop the duplicated error
message.

Signed-off-by: Uwe Kleine-König <[email protected]>
---
 drivers/bus/fsl-mc/fsl-mc-bus.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c
index 25845c04e562..0f0a5067f109 100644
--- a/drivers/bus/fsl-mc/fsl-mc-bus.c
+++ b/drivers/bus/fsl-mc/fsl-mc-bus.c
@@ -442,14 +442,7 @@ static int fsl_mc_driver_probe(struct device *dev)
 
        mc_drv = to_fsl_mc_driver(dev->driver);
 
-       error = mc_drv->probe(mc_dev);
-       if (error < 0) {
-               if (error != -EPROBE_DEFER)
-                       dev_err(dev, "%s failed: %d\n", __func__, error);
-               return error;
-       }
-
-       return 0;
+       return mc_drv->probe(mc_dev);
 }
 
 static int fsl_mc_driver_remove(struct device *dev)
-- 
2.47.3


Reply via email to