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>
This commit is contained in:
Libo Chen 2013-08-21 15:02:13 +08:00 committed by David S. Miller
parent e2748d7e93
commit 0b251835c6

View 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);