Commit 0b251835 authored by Libo Chen's avatar Libo Chen Committed by David S. Miller

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: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e2748d7e
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment