wdt: designware: fix timeout calculation due to expecting KHz
authorJack Mitchell <ml@embed.me.uk>
Thu, 17 Sep 2020 09:30:40 +0000 (10:30 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 8 Oct 2020 15:42:36 +0000 (11:42 -0400)
commitd9b9c91b5d0ee1044cc638f7ea809a3836cf168e
tree05baef29001ae5b8649a6bcdb1d9ef659096ce06
parent0eabb2ff2316c5d95367b79debb8229e686de774
wdt: designware: fix timeout calculation due to expecting KHz

The timeout calculation is based on the clk being in KHz but
the clk api returns the clk value in Hz. Convert this to KHz
to calculate the correct timeout value.

Signed-off-by: Jack Mitchell <ml@embed.me.uk>
drivers/watchdog/designware_wdt.c