net: sh_eth: Drop use of miiphy_get_dev_by_name()
Instead of doing another lookup, trivially access the struct mii_dev embedded in struct bb_miiphy_bus . No functional change. 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:
@@ -753,7 +753,7 @@ static int sh_ether_probe(struct udevice *udev)
|
||||
if (ret < 0)
|
||||
goto err_mdio_register;
|
||||
|
||||
priv->bus = miiphy_get_dev_by_name(udev->name);
|
||||
priv->bus = &bb_miiphy->mii;
|
||||
|
||||
eth->port = CFG_SH_ETHER_USE_PORT;
|
||||
eth->port_info[eth->port].phy_addr = CFG_SH_ETHER_PHY_ADDR;
|
||||
|
||||
Reference in New Issue
Block a user