summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-08-21 09:02:13 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-21 21:27:04 +0200
commit0b251835c65b0bf14befaac453dc978167d0d0eb (patch)
treef794e968d85685ae4d6dd90dcf9f6fbb9dafeb46 /drivers/net/ethernet/freescale
parentMerge branch 'tuntap' (diff)
downloadlinux-0b251835c65b0bf14befaac453dc978167d0d0eb.tar.xz
linux-0b251835c65b0bf14befaac453dc978167d0d0eb.zip
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 b7dcd4163951..c4f65067cf7c 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);