diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/watchdog/mtx-1_wdt.c | 8 |
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 | ||
72 | static void mtx1_wdt_trigger(unsigned long unused) | 72 | static 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 | ||
251 | static struct platform_driver mtx1_wdt = { | 249 | static 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 | ||
258 | static int __init mtx1_wdt_init(void) | 256 | static 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 | ||
263 | static void __exit mtx1_wdt_exit(void) | 261 | static 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 | ||
268 | module_init(mtx1_wdt_init); | 266 | module_init(mtx1_wdt_init); |