From: Libo Chen Date: Wed, 21 Aug 2013 07:02:13 +0000 (+0800) Subject: net: fsl_pq_mdio: remove unnecessary dev_set_drvdata() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0b251835c65b0bf14befaac453dc978167d0d0eb;p=linux-beck.git 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 Signed-off-by: David S. Miller --- 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);