]> git.hungrycats.org Git - linux/commit
watchdog: kempld-wdt: Use the correct value when configuring the prescaler with the...
authorgundberg <per.gundberg@icomera.com>
Thu, 24 Apr 2014 13:49:19 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:59:10 +0000 (18:59 -0700)
commit7d1cd9c360d66e8b3815b6d8bba31e50776d1bfd
treef91df2e88f240a4b544c34d4c384d0bdf5edf309
parent7eeb3fde74c84e6ba779f68195c546014e2b2aa7
watchdog: kempld-wdt: Use the correct value when configuring the prescaler with the watchdog

commit a9e0436b303e94ba57d3bd4b1fcbeaa744b7ebeb upstream.

Use the prescaler index, rather than its value, to configure the watchdog.
This will prevent a mismatch with the prescaler used to calculate the cycles.

Signed-off-by: Per Gundberg <per.gundberg@icomera.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Michael Brunner <michael.brunner@kontron.com>
Tested-by: Michael Brunner <michael.brunner@kontron.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/kempld_wdt.c