mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
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>
This commit is contained in:
parent
8f0b4cce44
commit
f4aff53c90
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user