summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/qualcomm/emac/emac.c
diff options
context:
space:
mode:
authorTimur Tabi <timur@codeaurora.org>2017-01-28 01:43:45 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-30 03:07:02 +0300
commit0f20276dd51bf4b74c7ba961c32fffb5a155fb1e (patch)
tree21f7a5b3d071f91d0918d3971971bb149238cea6 /drivers/net/ethernet/qualcomm/emac/emac.c
parent3db5d555eaec44ee0e1c80194963c4256b23f6ee (diff)
downloadlinux-0f20276dd51bf4b74c7ba961c32fffb5a155fb1e.tar.xz
net: qcom/emac: do not call emac_mac_start twice
emac_mac_start() uses information from the external PHY to program the MAC, so it makes no sense to call it before the link is up. Signed-off-by: Timur Tabi <timur@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/emac/emac.c')
-rw-r--r--drivers/net/ethernet/qualcomm/emac/emac.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qualcomm/emac/emac.c b/drivers/net/ethernet/qualcomm/emac/emac.c
index 3e1be9107d55..75305ad436d5 100644
--- a/drivers/net/ethernet/qualcomm/emac/emac.c
+++ b/drivers/net/ethernet/qualcomm/emac/emac.c
@@ -280,8 +280,6 @@ static int emac_open(struct net_device *netdev)
return ret;
}
- emac_mac_start(adpt);
-
return 0;
}