watchdog: armada_37xx_wdt: use do_div for u64 division
authorMarek Behún <marek.behun@nic.cz>
Wed, 10 Oct 2018 15:17:27 +0000 (17:17 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sat, 13 Oct 2018 13:19:43 +0000 (15:19 +0200)
commitc8ca6e70fb74cd3bb6fc0738aed40991b9de0b87
tree77023db2b5400ca07861c328b56c909bcdb0403a
parentcd69606ad05e1d6a930e2d29ac277c00108ef908
watchdog: armada_37xx_wdt: use do_div for u64 division

When the driver is built on 32 bit architectures during compile test,
the linker complains about "__udivdi3" being undefined. We have to use
do_div macro instead of the division operator when dividing u64 value.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/armada_37xx_wdt.c