f34e052ca29506a3f9b35cf0a0931dd76df6c24c
[openwrt.git] / target / linux / mediatek / patches-4.4 / 0072-net-mediatek-remove-superflous-reset-call.patch
1 From dd061dc7eacb22853981978fa94205292444fa49 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Fri, 25 Mar 2016 04:24:27 +0100
4 Subject: [PATCH 72/91] net: mediatek: remove superflous reset call
5
6 HW reset is triggered int he mtk_hw_init() function. There is no need to
7 reset the core during probe.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 ---
11  drivers/net/ethernet/mediatek/mtk_eth_soc.c |    4 ----
12  1 file changed, 4 deletions(-)
13
14 diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
15 index 4d8d0a3..293ea59 100644
16 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
17 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
18 @@ -1679,10 +1679,6 @@ static int mtk_probe(struct platform_device *pdev)
19         struct mtk_eth *eth;
20         int err;
21  
22 -       err = device_reset(&pdev->dev);
23 -       if (err)
24 -               return err;
25 -
26         match = of_match_device(of_mtk_match, &pdev->dev);
27         soc = (struct mtk_soc_data *)match->data;
28  
29 -- 
30 1.7.10.4
31