watchdog: softdog: remove forward declaration
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Wed, 25 May 2016 06:37:46 +0000 (08:37 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Sun, 17 Jul 2016 18:54:42 +0000 (20:54 +0200)
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/softdog.c

index 0a29f5a08337877f507894e23925726bc27bb5d1..42faa3d424d5ca0770971647a24ec39eca369f34 100644 (file)
@@ -54,11 +54,6 @@ module_param(soft_panic, int, 0);
 MODULE_PARM_DESC(soft_panic,
        "Softdog action, set to 1 to panic, 0 to reboot (default=0)");
 
-static void softdog_fire(unsigned long);
-
-static struct timer_list softdog_ticktock =
-               TIMER_INITIALIZER(softdog_fire, 0, 0);
-
 static void softdog_fire(unsigned long data)
 {
        module_put(THIS_MODULE);
@@ -74,6 +69,9 @@ static void softdog_fire(unsigned long data)
        }
 }
 
+static struct timer_list softdog_ticktock =
+               TIMER_INITIALIZER(softdog_fire, 0, 0);
+
 static int softdog_ping(struct watchdog_device *w)
 {
        if (!mod_timer(&softdog_ticktock, jiffies+(w->timeout*HZ)))