diff options
author | John Crispin <blogic@openwrt.org> | 2016-04-08 00:54:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-12 22:41:32 -0400 |
commit | 13439eec7af24b0800e654ee03c57ab985083ae4 (patch) | |
tree | e4a98307e32330a5be6fd6efd0b2bb7e28ffad05 /drivers/net/ethernet/mediatek | |
parent | beeb4ca466fa1c399d69e34c30ddf04e0b7cbefd (diff) | |
download | linux-13439eec7af24b0800e654ee03c57ab985083ae4.tar.bz2 |
net: mediatek: remove superfluous reset call
HW reset is triggered in the mtk_hw_init() function. There is no need to
also reset the core during probe.
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
-rw-r--r-- | drivers/net/ethernet/mediatek/mtk_eth_soc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 94cceb83b569..a4982e497ea6 100644 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c @@ -1679,10 +1679,6 @@ static int mtk_probe(struct platform_device *pdev) struct mtk_eth *eth; int err; - err = device_reset(&pdev->dev); - if (err) - return err; - match = of_match_device(of_mtk_match, &pdev->dev); soc = (struct mtk_soc_data *)match->data; |