mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
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:
parent
e2748d7e93
commit
0b251835c6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user