]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: miiphybb: Drop priv from struct bb_miiphy_bus
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 2 Mar 2025 01:24:46 +0000 (02:24 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 11 Mar 2025 22:05:57 +0000 (23:05 +0100)
Remove the priv member from struct bb_miiphy_bus and its assignment
from drivers. This turns struct bb_miiphy_bus int struct mii_dev
wrapper, to be cleaned up next.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
board/gdsys/a38x/ihs_phys.c
drivers/net/ravb.c
drivers/net/sh_eth.c
include/miiphy.h

index 86a4049238b683bbe068a80e2458a5b44ab1d137..7aa427e031203eb3bdc12d1e895f741ca8c4f10f 100644 (file)
@@ -257,9 +257,6 @@ int register_miiphy_bus(uint k, struct mii_dev **bus)
        mdiodev->write = mii_bb_miiphy_write;
        mdiodev->priv = &gpio_mii_set[k];
 
-       /* Copy the bus accessors and private data */
-       bb_miiphy->priv = &gpio_mii_set[k];
-
        retval = mdio_register(mdiodev);
        if (retval < 0)
                return retval;
index 52547b27aff835d8deabad6a2795210ff3f0ce57..dcd8ba9283fac13f3990abd480d83dd013281052 100644 (file)
@@ -601,9 +601,6 @@ static int ravb_probe(struct udevice *dev)
        mdiodev->priv = eth;
        snprintf(mdiodev->name, sizeof(mdiodev->name), dev->name);
 
-       /* Copy the bus accessors and private data */
-       bb_miiphy->priv = eth;
-
        ret = mdio_register(mdiodev);
        if (ret < 0)
                goto err_mdio_register;
index c898a2204d8947141a33d8c062359425eaf74db3..c2e2f3fc6c699c038a6f1351818e930db392f447 100644 (file)
@@ -763,9 +763,6 @@ static int sh_ether_probe(struct udevice *udev)
        mdiodev->priv = eth;
        snprintf(mdiodev->name, sizeof(mdiodev->name), udev->name);
 
-       /* Copy the bus accessors and private data */
-       bb_miiphy->priv = eth;
-
        ret = mdio_register(mdiodev);
        if (ret < 0)
                goto err_mdio_register;
index 9b8b42799c29b661e243a266f8a41c81e670d30a..d2678379a1b778b0d4fecd45d4a4b97a72205ca7 100644 (file)
@@ -74,7 +74,6 @@ struct bb_miiphy_bus_ops {
 };
 
 struct bb_miiphy_bus {
-       void *priv;
        struct mii_dev mii;
 };