net: miiphybb: Drop priv from struct bb_miiphy_bus

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>
This commit is contained in:
Marek Vasut
2025-03-02 02:24:46 +01:00
parent 7cded10da3
commit 596d67e516
4 changed files with 0 additions and 10 deletions

View 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;

View 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;

View 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;

View File

@@ -74,7 +74,6 @@ struct bb_miiphy_bus_ops {
};
struct bb_miiphy_bus {
void *priv;
struct mii_dev mii;
};