summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-08-21 15:02:13 +0800
committerDavid S. Miller <davem@davemloft.net>2013-08-21 12:27:04 -0700
commit0b251835c65b0bf14befaac453dc978167d0d0eb (patch)
treef794e968d85685ae4d6dd90dcf9f6fbb9dafeb46 /drivers/net/ethernet/freescale
parente2748d7e930c5ef292b8496d66e546063c825c93 (diff)
net: fsl_pq_mdio: remove unnecessary dev_set_drvdata()
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>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r--drivers/net/ethernet/freescale/fsl_pq_mdio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/fsl_pq_mdio.c b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
index b7dcd416395..c4f65067cf7 100644
--- a/drivers/net/ethernet/freescale/fsl_pq_mdio.c
+++ b/drivers/net/ethernet/freescale/fsl_pq_mdio.c
@@ -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);