diff options
| author | Marek Vasut <[email protected]> | 2025-02-22 21:33:30 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2025-02-26 18:26:57 +0100 |
| commit | f86d43a5446d887373407dabf8e8884f2085730f (patch) | |
| tree | 18c2ee6afd324552acaff0b681883877dfd08fb4 | |
| parent | a23f9a786b010177839d6fe9f67c717f17f74368 (diff) | |
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 <[email protected]>
Reviewed-by: Paul Barker <[email protected]>
| -rw-r--r-- | board/gdsys/a38x/ihs_phys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/gdsys/a38x/ihs_phys.c b/board/gdsys/a38x/ihs_phys.c index 128b1395243..71c9398c77a 100644 --- a/board/gdsys/a38x/ihs_phys.c +++ b/board/gdsys/a38x/ihs_phys.c @@ -245,7 +245,7 @@ int register_miiphy_bus(uint k, struct mii_dev **bus) retval = mdio_register(mdiodev); if (retval < 0) return retval; - *bus = miiphy_get_dev_by_name(mdiodev->name); + *bus = &bb_miiphy->mii; return mii_mdio_init(bb_miiphy); } |
