net: ravb: Drop empty init callback
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 22 Feb 2025 20:33:11 +0000 (21:33 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 26 Feb 2025 17:26:57 +0000 (18:26 +0100)
The init function does nothing, the bb_miiphy_init() already checks
whether the .init callback is assigned, and if not, skips calling it.
Remove the empty init function. The entire init callback will be
removed in follow up patches.

Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/net/ravb.c

index 7286ad1..5df557d 100644 (file)
@@ -560,11 +560,6 @@ static int ravb_remove(struct udevice *dev)
        return 0;
 }
 
-static int ravb_bb_init(struct bb_miiphy_bus *bus)
-{
-       return 0;
-}
-
 static int ravb_bb_mdio_active(struct bb_miiphy_bus *bus)
 {
        struct ravb_priv *eth = bus->priv;
@@ -626,7 +621,6 @@ static int ravb_bb_delay(struct bb_miiphy_bus *bus)
 struct bb_miiphy_bus bb_miiphy_buses[] = {
        {
                .name           = "ravb",
-               .init           = ravb_bb_init,
                .mdio_active    = ravb_bb_mdio_active,
                .mdio_tristate  = ravb_bb_mdio_tristate,
                .set_mdio       = ravb_bb_set_mdio,