Commit d9a8798c authored by Phil Sutter's avatar Phil Sutter Committed by Wim Van Sebroeck

[WATCHDOG] rc32434_wdt: fix sections

Fix init and exit sections.
Signed-off-by: default avatarPhil Sutter <n0-1@freewrt.org>
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
Cc: stable <stable@kernel.org>
parent 0af98d37
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <asm/time.h> #include <asm/time.h>
#include <asm/mach-rc32434/integ.h> #include <asm/mach-rc32434/integ.h>
#define VERSION "0.3" #define VERSION "0.4"
static struct { static struct {
unsigned long inuse; unsigned long inuse;
...@@ -242,10 +242,10 @@ static struct miscdevice rc32434_wdt_miscdev = { ...@@ -242,10 +242,10 @@ static struct miscdevice rc32434_wdt_miscdev = {
.fops = &rc32434_wdt_fops, .fops = &rc32434_wdt_fops,
}; };
static char banner[] = KERN_INFO KBUILD_MODNAME static char banner[] __devinitdata = KERN_INFO KBUILD_MODNAME
": Watchdog Timer version " VERSION ", timer margin: %d sec\n"; ": Watchdog Timer version " VERSION ", timer margin: %d sec\n";
static int rc32434_wdt_probe(struct platform_device *pdev) static int __devinit rc32434_wdt_probe(struct platform_device *pdev)
{ {
int ret; int ret;
struct resource *r; struct resource *r;
...@@ -280,7 +280,7 @@ unmap: ...@@ -280,7 +280,7 @@ unmap:
return ret; return ret;
} }
static int rc32434_wdt_remove(struct platform_device *pdev) static int __devexit rc32434_wdt_remove(struct platform_device *pdev)
{ {
misc_deregister(&rc32434_wdt_miscdev); misc_deregister(&rc32434_wdt_miscdev);
iounmap(wdt_reg); iounmap(wdt_reg);
...@@ -289,8 +289,8 @@ static int rc32434_wdt_remove(struct platform_device *pdev) ...@@ -289,8 +289,8 @@ static int rc32434_wdt_remove(struct platform_device *pdev)
static struct platform_driver rc32434_wdt = { static struct platform_driver rc32434_wdt = {
.probe = rc32434_wdt_probe, .probe = rc32434_wdt_probe,
.remove = rc32434_wdt_remove, .remove = __devexit_p(rc32434_wdt_remove),
.driver = { .driver = {
.name = "rc32434_wdt", .name = "rc32434_wdt",
} }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment