]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/watchdog/wm831x_wdt.c
iwlwifi: use 6000G2B for 6030 device series
[karo-tx-linux.git] / drivers / watchdog / wm831x_wdt.c
index 263c883f0806933c80212f00b8e3792c3ed73db6..b1815c5ed7a72ac7c24e90e8dc62649f8a32bd0b 100644 (file)
@@ -22,8 +22,8 @@
 #include <linux/mfd/wm831x/pdata.h>
 #include <linux/mfd/wm831x/watchdog.h>
 
-static int nowayout = WATCHDOG_NOWAYOUT;
-module_param(nowayout, int, 0);
+static bool nowayout = WATCHDOG_NOWAYOUT;
+module_param(nowayout, bool, 0);
 MODULE_PARM_DESC(nowayout,
                 "Watchdog cannot be stopped once started (default="
                 __MODULE_STRING(WATCHDOG_NOWAYOUT) ")");
@@ -163,6 +163,8 @@ static int wm831x_wdt_set_timeout(struct watchdog_device *wdt_dev,
                        ret);
        }
 
+       wdt_dev->timeout = timeout;
+
        return ret;
 }