]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3786d31734e719c39e6a54555ef3dbf0906acff6
tree77023db2b5400ca07861c328b56c909bcdb0403a
parent8196bfbb43e08c9de3b7ef29423e0c4af0c8b22c
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