diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-03-19 18:03:10 +0100 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-04-07 14:18:50 +0200 |
commit | 81a8728c834cfb004205b42eebafd86a70098509 (patch) | |
tree | d1fba2eed88b2a8ec425f78eeb6dc344743014eb /drivers | |
parent | 7f4e6c2ae129a3315390cc2ee76badade98e2e62 (diff) | |
download | u-boot-81a8728c834cfb004205b42eebafd86a70098509.zip u-boot-81a8728c834cfb004205b42eebafd86a70098509.tar.gz u-boot-81a8728c834cfb004205b42eebafd86a70098509.tar.bz2 |
net: phy: ncsi: Convert to U_BOOT_PHY_DRIVER()
Convert PHY driver to U_BOOT_PHY_DRIVER() macro and drop phy_register() init call.
Converted using sed
"s@^static struct phy_driver \(.*\)_driver = \+{@U_BOOT_PHY_DRIVER(\L\1) = {"
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Acked-by: Michal Simek <michal.simek@amd.com>
Tested-by: Michal Simek <michal.simek@amd.com> #microblaze (MANUAL_RELOC)
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/ncsi.c | 8 | ||||
-rw-r--r-- | drivers/net/phy/phy.c | 3 |
2 files changed, 1 insertions, 10 deletions
diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c index bb7eceb..eb3fd65 100644 --- a/drivers/net/phy/ncsi.c +++ b/drivers/net/phy/ncsi.c @@ -881,7 +881,7 @@ int ncsi_shutdown(struct phy_device *phydev) return 0; } -static struct phy_driver ncsi_driver = { +U_BOOT_PHY_DRIVER(ncsi) = { .uid = PHY_NCSI_ID, .mask = 0xffffffff, .name = "NC-SI", @@ -891,9 +891,3 @@ static struct phy_driver ncsi_driver = { .startup = ncsi_startup, .shutdown = ncsi_shutdown, }; - -int phy_ncsi_init(void) -{ - phy_register(&ncsi_driver); - return 0; -} diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 245357c..69db79f 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -514,9 +514,6 @@ int phy_init(void) phy_drv_reloc(drv); #endif -#ifdef CONFIG_PHY_NCSI - phy_ncsi_init(); -#endif #ifdef CONFIG_PHY_XILINX_GMII2RGMII phy_xilinx_gmii2rgmii_init(); #endif |