mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
beeb4ca466
commit
13439eec7a
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue