diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2016-05-25 08:37:48 +0200 |
---|---|---|
committer | Wim Van Sebroeck <wim@iguana.be> | 2016-07-17 20:54:49 +0200 |
commit | 61a21274c9eee5a3adb85441a91a071de4260863 (patch) | |
tree | 95bdcefff1893aa59d8aa939967e8839691fbc84 | |
parent | e65c5825c6ef850a26cd449157024bad6e2eec9c (diff) | |
download | op-kernel-dev-61a21274c9eee5a3adb85441a91a071de4260863.zip op-kernel-dev-61a21274c9eee5a3adb85441a91a071de4260863.tar.gz |
watchdog: softdog: drop superfluous set_timeout callback
If we leave set_timeout empty, the core will do exactly what is
implemented here anyway.
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>
-rw-r--r-- | drivers/watchdog/softdog.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/watchdog/softdog.c b/drivers/watchdog/softdog.c index ab0e02f..5e3a30b 100644 --- a/drivers/watchdog/softdog.c +++ b/drivers/watchdog/softdog.c @@ -87,12 +87,6 @@ static int softdog_stop(struct watchdog_device *w) return 0; } -static int softdog_set_timeout(struct watchdog_device *w, unsigned int t) -{ - w->timeout = t; - return 0; -} - static struct watchdog_info softdog_info = { .identity = "Software Watchdog", .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE, @@ -102,7 +96,6 @@ static struct watchdog_ops softdog_ops = { .owner = THIS_MODULE, .start = softdog_ping, .stop = softdog_stop, - .set_timeout = softdog_set_timeout, }; static struct watchdog_device softdog_dev = { |