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>
Acked-by: Michal Simek <michal.simek@amd.com>
Tested-by: Michal Simek <michal.simek@amd.com> #microblaze (MANUAL_RELOC)
return genphy_config(phydev);
}
-static struct phy_driver ADIN1300_driver = {
+U_BOOT_PHY_DRIVER(ADIN1300) = {
.name = "ADIN1300",
.uid = PHY_ID_ADIN1300,
.mask = 0xffffffff,
.startup = genphy_startup,
.shutdown = genphy_shutdown,
};
-
-int phy_adin_init(void)
-{
- phy_register(&ADIN1300_driver);
-
- return 0;
-}
#ifdef CONFIG_MV88E61XX_SWITCH
phy_mv88e61xx_init();
#endif
-#ifdef CONFIG_PHY_ADIN
- phy_adin_init();
-#endif
#ifdef CONFIG_PHY_AQUANTIA
phy_aquantia_init();
#endif
int phy_b53_init(void);
int phy_mv88e61xx_init(void);
-int phy_adin_init(void);
int phy_aquantia_init(void);
int phy_atheros_init(void);
int phy_broadcom_init(void);