Skip to content

Commit

Permalink
net: fsl_pq_mdio: remove unnecessary dev_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Libo Chen authored and David S. Miller committed Aug 21, 2013
1 parent e2748d7 commit 0b25183
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/freescale/fsl_pq_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0b25183

Please sign in to comment.