summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-03-11 19:05:03 -0600
committerTom Rini <[email protected]>2025-03-11 19:05:03 -0600
commit8540eba3e030fb1bcd4c6cd2d9b19f4f8ac1fb94 (patch)
tree95ce9d9dfb69adc180d1742d0b88d032d4cf82ef /common
parent38880f39e287af132f4fb28a3f64b2af10bdbf60 (diff)
parent4226433858318be5914688963436ad41cbe2298d (diff)
Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-sh into next
Diffstat (limited to 'common')
-rw-r--r--common/miiphyutil.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/common/miiphyutil.c b/common/miiphyutil.c
index 3d960c259b5..274e88a4921 100644
--- a/common/miiphyutil.c
+++ b/common/miiphyutil.c
@@ -55,14 +55,6 @@ struct mii_dev *miiphy_get_dev_by_name(const char *devname)
return NULL;
}
-void mdio_init(struct mii_dev *bus)
-{
- memset(bus, 0, sizeof(*bus));
-
- /* initialize mii_dev struct fields */
- INIT_LIST_HEAD(&bus->link);
-}
-
struct mii_dev *mdio_alloc(void)
{
struct mii_dev *bus;
@@ -71,7 +63,10 @@ struct mii_dev *mdio_alloc(void)
if (!bus)
return bus;
- mdio_init(bus);
+ memset(bus, 0, sizeof(*bus));
+
+ /* initialize mii_dev struct fields */
+ INIT_LIST_HEAD(&bus->link);
return bus;
}