From be49508a0f3229ff589dfabad80ab2774f47875a Mon Sep 17 00:00:00 2001 From: Siva Durga Prasad Paladugu Date: Fri, 15 Mar 2019 17:46:47 +0530 Subject: [PATCH] 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 --- drivers/net/phy/phy.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index ae37dd6..8c40434 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) @@ -540,6 +545,8 @@ int phy_init(void) #ifdef CONFIG_PHY_FIXED phy_fixed_init(); #endif + genphy_init(); + return 0; } -- 2.7.4