Browse Source

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>
John Crispin 9 years ago
parent
commit
13439eec7a
1 changed files with 0 additions and 4 deletions
  1. 0 4
      drivers/net/ethernet/mediatek/mtk_eth_soc.c

+ 0 - 4
drivers/net/ethernet/mediatek/mtk_eth_soc.c

@@ -1679,10 +1679,6 @@ static int mtk_probe(struct platform_device *pdev)
 	struct mtk_eth *eth;
 	struct mtk_eth *eth;
 	int err;
 	int err;
 
 
-	err = device_reset(&pdev->dev);
-	if (err)
-		return err;
-
 	match = of_match_device(of_mtk_match, &pdev->dev);
 	match = of_match_device(of_mtk_match, &pdev->dev);
 	soc = (struct mtk_soc_data *)match->data;
 	soc = (struct mtk_soc_data *)match->data;