From: Siva Durga Prasad Paladugu Date: Fri, 15 Mar 2019 12:16:47 +0000 (+0530) Subject: net: phy: Define init routine and register generic phy driver X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b04f472971e1a31f71d84b2eb9390a949819b70;p=thirdparty%2Fu-boot.git net: phy: Define init routine and register generic phy driver This patch define init routine for generic phy driver and registers it using phy_register as this generic phy driver also needs to be relocated incase of manual reloc. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 2017f595683..ebe07fcaaf1 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -458,6 +458,11 @@ static struct phy_driver genphy_driver = { .shutdown = genphy_shutdown, }; +int genphy_init(void) +{ + return phy_register(&genphy_driver); +} + static LIST_HEAD(phy_drivers); int phy_init(void) @@ -543,6 +548,8 @@ int phy_init(void) #ifdef CONFIG_PHY_XILINX_GMII2RGMII phy_xilinx_gmii2rgmii_init(); #endif + genphy_init(); + return 0; }