Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Uwe Kleine-König and committed by
Christophe Leroy (CS GROUP)
f4aff53c 8f0b4cce

+1 -8
+1 -8
drivers/bus/fsl-mc/fsl-mc-bus.c
··· 442 442 443 443 mc_drv = to_fsl_mc_driver(dev->driver); 444 444 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); 453 446 } 454 447 455 448 static int fsl_mc_driver_remove(struct device *dev)