summaryrefslogtreecommitdiff
path: root/drivers/net/fm
diff options
context:
space:
mode:
authorMadalin Bucur <madalin.bucur@oss.nxp.com>2020-05-04 13:09:12 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-05-19 09:22:07 +0530
commit9b2e892eb6e30913ee8ca95f1a360d61785d0912 (patch)
tree083213b39d4f6cb24637a6bfc15b9fa10b9e9243 /drivers/net/fm
parentb84519cbd56f46d4acd8ef3e334145b2021fcd17 (diff)
driver: net: fm: minor fix in DM ETH support
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>
Diffstat (limited to 'drivers/net/fm')
-rw-r--r--drivers/net/fm/eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c
index 5f1a023352..371c5d2de7 100644
--- a/drivers/net/fm/eth.c
+++ b/drivers/net/fm/eth.c
@@ -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 */