summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/at32ap700x_wdt.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-04 01:41:14 +0530
committerWim Van Sebroeck <wim@iguana.be>2013-07-11 20:52:42 +0200
commit321e31231d781aa91e94e8e3974db1edb428b6a4 (patch)
treec1a2ca448647332dca4070e027c2ca16fc4c20cc /drivers/watchdog/at32ap700x_wdt.c
parenta7960784e9ddd526e4fb791bc23e4fe6f039c28e (diff)
downloadblackbird-op-linux-321e31231d781aa91e94e8e3974db1edb428b6a4.tar.gz
blackbird-op-linux-321e31231d781aa91e94e8e3974db1edb428b6a4.zip
watchdog: at32ap700x: 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> Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/at32ap700x_wdt.c')
-rw-r--r--drivers/watchdog/at32ap700x_wdt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/watchdog/at32ap700x_wdt.c b/drivers/watchdog/at32ap700x_wdt.c
index c4cb5526112a..b178e717ef09 100644
--- a/drivers/watchdog/at32ap700x_wdt.c
+++ b/drivers/watchdog/at32ap700x_wdt.c
@@ -365,7 +365,7 @@ static int __init at32_wdt_probe(struct platform_device *pdev)
ret = misc_register(&wdt->miscdev);
if (ret) {
dev_dbg(&pdev->dev, "failed to register wdt miscdev\n");
- goto err_register;
+ goto err_free;
}
dev_info(&pdev->dev,
@@ -374,8 +374,6 @@ static int __init at32_wdt_probe(struct platform_device *pdev)
return 0;
-err_register:
- platform_set_drvdata(pdev, NULL);
err_free:
wdt = NULL;
return ret;
@@ -390,7 +388,6 @@ static int __exit at32_wdt_remove(struct platform_device *pdev)
misc_deregister(&wdt->miscdev);
wdt = NULL;
- platform_set_drvdata(pdev, NULL);
}
return 0;
}
OpenPOWER on IntegriCloud