Skip to content

Commit f4aff53

Browse files
ukleinekChristophe Leroy (CS GROUP)
authored andcommitted
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>
1 parent 8f0b4cc commit f4aff53

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

drivers/bus/fsl-mc/fsl-mc-bus.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,7 @@ static int fsl_mc_driver_probe(struct device *dev)
442442

443443
mc_drv = to_fsl_mc_driver(dev->driver);
444444

445-
error = mc_drv->probe(mc_dev);
446-
if (error < 0) {
447-
if (error != -EPROBE_DEFER)
448-
dev_err(dev, "%s failed: %d\n", __func__, error);
449-
return error;
450-
}
451-
452-
return 0;
445+
return mc_drv->probe(mc_dev);
453446
}
454447

455448
static int fsl_mc_driver_remove(struct device *dev)

0 commit comments

Comments
 (0)