mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
net: miiphybb: Drop mdio_init()
Inline mdio_init() back into mdio_alloc(), separate access to mdio_init() is no longer necessary. 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:
parent
256306593e
commit
33ccfae853
2 changed files with 4 additions and 10 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ struct phy_device *mdio_phydev_for_ethname(const char *devname);
|
|||
|
||||
void miiphy_listdev(void);
|
||||
|
||||
void mdio_init(struct mii_dev *bus);
|
||||
struct mii_dev *mdio_alloc(void);
|
||||
void mdio_free(struct mii_dev *bus);
|
||||
int mdio_register(struct mii_dev *bus);
|
||||
|
|
Loading…
Add table
Reference in a new issue