* There are 16 possible timeout values in 0..15 where the number of
* cycles is 2 ^ (16 + i) and the watchdog counts down.
*/
- return (1 << (16 + top)) / clk_get_rate(dw_wdt.clk);
+ unsigned int cycles = 1 << (16 + top);
+
+ return cycles / clk_get_rate(dw_wdt.clk);
}
static int dw_wdt_get_top(void)