Skip to content

Commit

Permalink
[WATCHDOG] rc32434_wdt: fix sections
Browse files Browse the repository at this point in the history
Fix init and exit sections.

Signed-off-by: Phil Sutter <n0-1@freewrt.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: stable <stable@kernel.org>
  • Loading branch information
Phil Sutter authored and Wim Van Sebroeck committed Feb 24, 2009
1 parent 0af98d3 commit d9a8798
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/watchdog/rc32434_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <asm/time.h>
#include <asm/mach-rc32434/integ.h>

#define VERSION "0.3"
#define VERSION "0.4"

static struct {
unsigned long inuse;
Expand Down Expand Up @@ -242,10 +242,10 @@ static struct miscdevice rc32434_wdt_miscdev = {
.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";

static int rc32434_wdt_probe(struct platform_device *pdev)
static int __devinit rc32434_wdt_probe(struct platform_device *pdev)
{
int ret;
struct resource *r;
Expand Down Expand Up @@ -280,7 +280,7 @@ static int rc32434_wdt_probe(struct platform_device *pdev)
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);
iounmap(wdt_reg);
Expand All @@ -289,8 +289,8 @@ static int rc32434_wdt_remove(struct platform_device *pdev)

static struct platform_driver rc32434_wdt = {
.probe = rc32434_wdt_probe,
.remove = rc32434_wdt_remove,
.driver = {
.remove = __devexit_p(rc32434_wdt_remove),
.driver = {
.name = "rc32434_wdt",
}
};
Expand Down

0 comments on commit d9a8798

Please sign in to comment.