瀏覽代碼

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 年之前
父節點
當前提交
13439eec7a
共有 1 個文件被更改,包括 0 次插入4 次删除
  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;
 	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;