watchdog: kempld-wdt: Use the correct value when configuring the prescaler with the watchdog
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: NPer Gundberg <per.gundberg@icomera.com> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Reviewed-by: NMichael Brunner <michael.brunner@kontron.com> Tested-by: NMichael Brunner <michael.brunner@kontron.com> Signed-off-by: NWim Van Sebroeck <wim@iguana.be> Cc: stable <stable@vger.kernel.org>
Showing
想要评论请 注册 或 登录