提交 db98f89a 编写于 作者: F Florian Fainelli 提交者: Wim Van Sebroeck

watchdog: mtx1-wdt: fix section mismatch

Fix section mismatch and remove unused variable 'tmp'.
Signed-off-by: NFlorian Fainelli <florian@openwrt.org>
Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
上级 2ea4e76e
......@@ -71,8 +71,6 @@ static struct {
static void mtx1_wdt_trigger(unsigned long unused)
{
u32 tmp;
spin_lock(&mtx1_wdt_device.lock);
if (mtx1_wdt_device.running)
ticks--;
......@@ -248,7 +246,7 @@ static int __devexit mtx1_wdt_remove(struct platform_device *pdev)
return 0;
}
static struct platform_driver mtx1_wdt = {
static struct platform_driver mtx1_wdt_driver = {
.probe = mtx1_wdt_probe,
.remove = __devexit_p(mtx1_wdt_remove),
.driver.name = "mtx1-wdt",
......@@ -257,12 +255,12 @@ static struct platform_driver mtx1_wdt = {
static int __init mtx1_wdt_init(void)
{
return platform_driver_register(&mtx1_wdt);
return platform_driver_register(&mtx1_wdt_driver);
}
static void __exit mtx1_wdt_exit(void)
{
platform_driver_unregister(&mtx1_wdt);
platform_driver_unregister(&mtx1_wdt_driver);
}
module_init(mtx1_wdt_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册