]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
driver: net: fm: minor fix in DM ETH support
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Mon, 4 May 2020 10:09:12 +0000 (13:09 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 19 May 2020 03:52:07 +0000 (09:22 +0530)
Bus callback functions for read/write/reset need to be set only for
DM_ETH, moving endif a bit lower.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fm/eth.c

index 5f1a0233525cf56b1efd7346b4cca0568f72f801..371c5d2de7148751ba8dca337922ad9755ecf419 100644 (file)
@@ -54,10 +54,10 @@ static void dtsec_configure_serdes(struct fm_eth *priv)
        bus.priv = priv->mac->phyregs;
 #else
        bus.priv = priv->pcs_mdio;
-#endif
        bus.read = memac_mdio_read;
        bus.write = memac_mdio_write;
        bus.reset = memac_mdio_reset;
+#endif
 
 qsgmii_loop:
        /* SGMII IF mode + AN enable only for 1G SGMII, not for 2.5G */