net: xilinx_emaclite: remove unnecessary dev_set_drvdata()
authorLibo Chen <libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:36 +0000 (15:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 19:27:04 +0000 (12:27 -0700)
Unnecessary dev_set_drvdata() is removed, because the driver core
clears the driver data to NULL after device_release or on probe failure.

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Acked-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c

index 7c1ccbcb47be230009fb86ee259dcfb1f68df848..4c619ea5189fc22308b8fe36851824e72eaad0ab 100644 (file)
@@ -1249,7 +1249,6 @@ static int xemaclite_of_remove(struct platform_device *of_dev)
        lp->phy_node = NULL;
 
        xemaclite_remove_ndev(ndev, of_dev);
-       dev_set_drvdata(dev, NULL);
 
        return 0;
 }