mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
net: phy: micrel: use dev_err_probe()
Currently, during probe defferal the driver will print multiple times: mscc-miim e20101a8.mdio: Cannot register MDIO bus (-517) So, lets silence that by using the dev_err_probe() for printing the probe error as it handles probe defferal. Signed-off-by: Robert Marko <robert.marko@sartura.hr> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://patch.msgid.link/20260515120608.706361-1-robert.marko@sartura.hr Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9bf93cb2e1
commit
65d6d1fa50
|
|
@ -330,7 +330,7 @@ static int mscc_miim_probe(struct platform_device *pdev)
|
|||
|
||||
ret = of_mdiobus_register(bus, np);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "Cannot register MDIO bus (%d)\n", ret);
|
||||
dev_err_probe(dev, ret, "Cannot register MDIO bus\n");
|
||||
goto out_disable_clk;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user