From: Josep Orga Date: Sat, 18 Apr 2020 09:00:21 +0000 (+0200) Subject: net: ethernet: fec_main: Add reset PHY GPIOs when CONFIG_OF is not defined. X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=693985ee513ad36a8e539dc84df0abe33afbb8ac;p=linux.git net: ethernet: fec_main: Add reset PHY GPIOs when CONFIG_OF is not defined. Signed-off-by: Josep Orga --- diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 0c95c68e5bb2..89b83fbeceaa 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -3536,6 +3536,14 @@ static int fec_reset_phy(struct platform_device *pdev) } #else /* CONFIG_OF */ +static void fec_reset_phy_init_SOMDEVICES(void) +{ + /* + * In case of platform probe, the reset has been done + * by machine code. + */ + return; +} static int fec_reset_phy_init(struct platform_device *pdev) { /*