summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2025-12-02 15:09:19 +0100
committerChristophe Leroy (CS GROUP) <chleroy@kernel.org>2025-12-14 10:22:19 +0100
commitf4aff53c90e48360c91b6d902b935ecbaccb0b62 (patch)
tree16c1f023902d0b7058d0e97753d58180868cc111
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff)
bus: fsl-mc: Drop error message in probe function
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>
-rw-r--r--drivers/bus/fsl-mc/fsl-mc-bus.c9
1 files changed, 1 insertions, 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)