]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
bus: fsl-mc: Drop error message in probe function
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 2 Dec 2025 14:09:19 +0000 (15:09 +0100)
committerChristophe Leroy (CS GROUP) <chleroy@kernel.org>
Sun, 14 Dec 2025 09:22:19 +0000 (10:22 +0100)
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 <u.kleine-koenig@baylibre.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/52c89497f78839446713a9c5456defce97a74c7d.1764684327.git.u.kleine-koenig@baylibre.com
Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
drivers/bus/fsl-mc/fsl-mc-bus.c

index 25845c04e5620aff54a33c26a08170f6f3a88720..0f0a5067f109ab78ef5491e974341a6a3bb82da5 100644 (file)
@@ -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)