diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-10-03 05:46:30 -0400 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2013-11-17 13:37:31 -0500 |
commit | b1f9cd3225ae2e8626fe7503ae7be92240873049 (patch) | |
tree | ca9d88cd4bd320c953ed04b449b3556cadb8d332 /drivers/watchdog | |
parent | f0fcbdbf202e2be36c8eb6d1f5c01f95805777de (diff) |
watchdog: sp805_wdt: Remove unnecessary amba_set_drvdata()
Driver core clears the driver data to NULL after device_release
or on probe failure, so just remove it from here.
Driver core change:
"device-core: Ensure drvdata = NULL when no driver is bound"
(sha1: 0998d0631001288a5974afc0b2a5f568bcdecb4d)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/sp805_wdt.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 58df98aec122..3f786ce0a6f2 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c | |||
@@ -268,7 +268,6 @@ static int sp805_wdt_remove(struct amba_device *adev) | |||
268 | struct sp805_wdt *wdt = amba_get_drvdata(adev); | 268 | struct sp805_wdt *wdt = amba_get_drvdata(adev); |
269 | 269 | ||
270 | watchdog_unregister_device(&wdt->wdd); | 270 | watchdog_unregister_device(&wdt->wdd); |
271 | amba_set_drvdata(adev, NULL); | ||
272 | watchdog_set_drvdata(&wdt->wdd, NULL); | 271 | watchdog_set_drvdata(&wdt->wdd, NULL); |
273 | 272 | ||
274 | return 0; | 273 | return 0; |