Skip to content

Commit

Permalink
watchdog: shwdt: Remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
Commit 0998d06 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <[email protected]>
Cc: Paul Mundt <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
Sachin Kamat authored and Wim Van Sebroeck committed Jul 11, 2013
1 parent 2f7b9b4 commit 4d2327c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/watchdog/shwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,6 @@ static int sh_wdt_remove(struct platform_device *pdev)
{
struct sh_wdt *wdt = platform_get_drvdata(pdev);

platform_set_drvdata(pdev, NULL);

watchdog_unregister_device(&sh_wdt_dev);

pm_runtime_disable(&pdev->dev);
Expand Down

0 comments on commit 4d2327c

Please sign in to comment.