diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-03 22:11:16 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-07-11 21:03:04 +0200 |
commit | 4d2327ca9d44dbf5b4ead443f380ad58baa8c201 (patch) | |
tree | bf47e83b06ccac7b4dd0ffa6f4868b67a8a78cd0 /drivers/watchdog | |
parent | watchdog: shwdt: use devm_clk_get() (diff) | |
download | linux-4d2327ca9d44dbf5b4ead443f380ad58baa8c201.tar.xz linux-4d2327ca9d44dbf5b4ead443f380ad58baa8c201.zip |
watchdog: shwdt: Remove redundant platform_set_drvdata()
Commit 0998d06310 (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 <sachin.kamat@linaro.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/shwdt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/watchdog/shwdt.c b/drivers/watchdog/shwdt.c index ea2154bfe5ab..5bca79457768 100644 --- a/drivers/watchdog/shwdt.c +++ b/drivers/watchdog/shwdt.c @@ -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); |