net: fsl_pq_mdio: remove unnecessary dev_set_drvdata()
authorLibo Chen <libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:13 +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/fsl_pq_mdio.c

index b7dcd41639516b0486dcaa53b9e8c34b7184d2aa..c4f65067cf7c30d94482b400ff86532da5546171 100644 (file)
@@ -468,8 +468,6 @@ static int fsl_pq_mdio_remove(struct platform_device *pdev)
 
        mdiobus_unregister(bus);
 
-       dev_set_drvdata(device, NULL);
-
        iounmap(priv->map);
        mdiobus_free(bus);