projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0fcbdb
)
watchdog: sp805_wdt: Remove unnecessary amba_set_drvdata()
author
Michal Simek
<
[email protected]
>
Thu, 3 Oct 2013 09:46:30 +0000
(11:46 +0200)
committer
Wim Van Sebroeck
<
[email protected]
>
Sun, 17 Nov 2013 18:37:31 +0000
(19:37 +0100)
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 <
[email protected]
>
Reviewed-by: Guenter Roeck <
[email protected]
>
Signed-off-by: Wim Van Sebroeck <
[email protected]
>
drivers/watchdog/sp805_wdt.c
patch
|
blob
|
history
diff --git
a/drivers/watchdog/sp805_wdt.c
b/drivers/watchdog/sp805_wdt.c
index 58df98aec1228d794e6b42030192cd6e54012234..3f786ce0a6f2ae93fbb788f7b5dbfc1a06efeac5 100644
(file)
--- 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)
struct sp805_wdt *wdt = amba_get_drvdata(adev);
watchdog_unregister_device(&wdt->wdd);
- amba_set_drvdata(adev, NULL);
watchdog_set_drvdata(&wdt->wdd, NULL);
return 0;