net: ucc_geth: remove unnecessary dev_set_drvdata()
authorLibo Chen <libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:18 +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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c

index 533885c40747b017519bf3a99518c8442750300b..5930c39672db25eee560dabd16cf38d1ca54636b 100644 (file)
@@ -3917,7 +3917,6 @@ static int ucc_geth_remove(struct platform_device* ofdev)
        unregister_netdev(dev);
        free_netdev(dev);
        ucc_geth_memclean(ugeth);
-       dev_set_drvdata(device, NULL);
 
        return 0;
 }