Skip to content

Commit

Permalink
net: davinci_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 0c671dc commit 110a183
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/ti/davinci_mdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,6 @@ static int davinci_mdio_remove(struct platform_device *pdev)
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);

dev_set_drvdata(dev, NULL);

kfree(data);

return 0;
Expand Down

0 comments on commit 110a183

Please sign in to comment.