aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-06-15 13:15:52 -0400
committerWim Van Sebroeck <wim@iguana.be>2011-06-28 03:42:40 -0400
commitdb98f89a2807966c6e82601f5c57e1a9c214c91a (patch)
treeade414c94b17dbdb730a2cf26cf7124b518c2332 /drivers/watchdog
parent2ea4e76e997019ae25ac3417aa46e31ddf7ecb17 (diff)
watchdog: mtx1-wdt: fix section mismatch
Fix section mismatch and remove unused variable 'tmp'. Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/mtx-1_wdt.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c
index 54aa90042484..0430e093b1a0 100644
--- a/drivers/watchdog/mtx-1_wdt.c
+++ b/drivers/watchdog/mtx-1_wdt.c
@@ -71,8 +71,6 @@ static struct {
71 71
72static void mtx1_wdt_trigger(unsigned long unused) 72static void mtx1_wdt_trigger(unsigned long unused)
73{ 73{
74 u32 tmp;
75
76 spin_lock(&mtx1_wdt_device.lock); 74 spin_lock(&mtx1_wdt_device.lock);
77 if (mtx1_wdt_device.running) 75 if (mtx1_wdt_device.running)
78 ticks--; 76 ticks--;
@@ -248,7 +246,7 @@ static int __devexit mtx1_wdt_remove(struct platform_device *pdev)
248 return 0; 246 return 0;
249} 247}
250 248
251static struct platform_driver mtx1_wdt = { 249static struct platform_driver mtx1_wdt_driver = {
252 .probe = mtx1_wdt_probe, 250 .probe = mtx1_wdt_probe,
253 .remove = __devexit_p(mtx1_wdt_remove), 251 .remove = __devexit_p(mtx1_wdt_remove),
254 .driver.name = "mtx1-wdt", 252 .driver.name = "mtx1-wdt",
@@ -257,12 +255,12 @@ static struct platform_driver mtx1_wdt = {
257 255
258static int __init mtx1_wdt_init(void) 256static int __init mtx1_wdt_init(void)
259{ 257{
260 return platform_driver_register(&mtx1_wdt); 258 return platform_driver_register(&mtx1_wdt_driver);
261} 259}
262 260
263static void __exit mtx1_wdt_exit(void) 261static void __exit mtx1_wdt_exit(void)
264{ 262{
265 platform_driver_unregister(&mtx1_wdt); 263 platform_driver_unregister(&mtx1_wdt_driver);
266} 264}
267 265
268module_init(mtx1_wdt_init); 266module_init(mtx1_wdt_init);