net: ethernet: fec_main: Add reset PHY GPIOs when CONFIG_OF is not defined.
authorJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 09:00:21 +0000 (11:00 +0200)
committerJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 09:00:21 +0000 (11:00 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
drivers/net/ethernet/freescale/fec_main.c

index 0c95c68..89b83fb 100644 (file)
@@ -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)
 {
        /*