arm: mvebu: a38x: 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:
@@ -245,7 +245,7 @@ int register_miiphy_bus(uint k, struct mii_dev **bus)
|
|||||||
retval = mdio_register(mdiodev);
|
retval = mdio_register(mdiodev);
|
||||||
if (retval < 0)
|
if (retval < 0)
|
||||||
return retval;
|
return retval;
|
||||||
*bus = miiphy_get_dev_by_name(mdiodev->name);
|
*bus = &bb_miiphy->mii;
|
||||||
|
|
||||||
return mii_mdio_init(bb_miiphy);
|
return mii_mdio_init(bb_miiphy);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user