Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
[oweals/u-boot.git] / drivers / net / fm / eth.c
index 81a4cf212943bbd41d84d23de8ab8f728cf2b9f8..62396d3a16dbffea4d081df611885ec1c052c558 100644 (file)
@@ -57,10 +57,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 */