summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-04 01:41:16 +0530
committerWim Van Sebroeck <wim@iguana.be>2013-07-11 21:03:04 +0200
commit4d2327ca9d44dbf5b4ead443f380ad58baa8c201 (patch)
treebf47e83b06ccac7b4dd0ffa6f4868b67a8a78cd0 /drivers/watchdog
parent2f7b9b4883f4d67821bbd80f8fdfb8630d24cc60 (diff)
downloadblackbird-obmc-linux-4d2327ca9d44dbf5b4ead443f380ad58baa8c201.tar.gz
blackbird-obmc-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.c2
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);
OpenPOWER on IntegriCloud