Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Florian Fainelli and committed by
Wim Van Sebroeck
db98f89a 2ea4e76e

+3 -5
+3 -5
drivers/watchdog/mtx-1_wdt.c
··· 71 71 72 72 static void mtx1_wdt_trigger(unsigned long unused) 73 73 { 74 - u32 tmp; 75 - 76 74 spin_lock(&mtx1_wdt_device.lock); 77 75 if (mtx1_wdt_device.running) 78 76 ticks--; ··· 246 248 return 0; 247 249 } 248 250 249 - static struct platform_driver mtx1_wdt = { 251 + static struct platform_driver mtx1_wdt_driver = { 250 252 .probe = mtx1_wdt_probe, 251 253 .remove = __devexit_p(mtx1_wdt_remove), 252 254 .driver.name = "mtx1-wdt", ··· 255 257 256 258 static int __init mtx1_wdt_init(void) 257 259 { 258 - return platform_driver_register(&mtx1_wdt); 260 + return platform_driver_register(&mtx1_wdt_driver); 259 261 } 260 262 261 263 static void __exit mtx1_wdt_exit(void) 262 264 { 263 - platform_driver_unregister(&mtx1_wdt); 265 + platform_driver_unregister(&mtx1_wdt_driver); 264 266 } 265 267 266 268 module_init(mtx1_wdt_init);