net: mediatek: remove superfluous reset call
authorJohn Crispin <[email protected]>
Thu, 7 Apr 2016 22:54:06 +0000 (00:54 +0200)
committerDavid S. Miller <[email protected]>
Wed, 13 Apr 2016 02:41:32 +0000 (22:41 -0400)
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/mediatek/mtk_eth_soc.c

index 94cceb83b5694f5b3bf8defe4a0b2dd0951bcb68..a4982e497ea69b9c796411c3ea719c2d338af158 100644 (file)
@@ -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;