]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: phy: micrel: use dev_err_probe()
authorRobert Marko <robert.marko@sartura.hr>
Fri, 15 May 2026 12:05:40 +0000 (14:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 May 2026 00:43:39 +0000 (17:43 -0700)
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>
drivers/net/mdio/mdio-mscc-miim.c

index 944efd33da6dc29eb127dc78d3e7f69f3ece1d5a..259944d37fbdf75ca659d870b48be5d2cf02f210 100644 (file)
@@ -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;
        }