Ralf Baechle cd6cbde6b0 WATCHDOG: sb_wdog: Fix 32 bit build failure
Fixes the following linking problem:
drivers/watchdog/sb_wdog.c:211: undefined reference to `__udivdi3'

This results from reading a 64 bit register, then dividing the value by
1000000.  For 32 bit kernels gcc will use the helper function __udivdi3
from libgcc which the kernel intentionally doesn't provide.

In the read registerbits 23..63 are always zero and only bits 0..22 are
signficant.  So a simple cast to truncate the read value to 32 bits
fixes the issue.

Reported and initial patch by Markos Chandras <markos.chandras@imgtec.com>.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reported-by: Markos Chandras <markos.chandras@imgtec.com>
2013-06-21 18:07:03 +02:00
..
2013-05-23 09:27:08 -07:00
2013-05-17 14:31:05 -04:00
2013-05-30 18:27:24 -07:00
2013-04-26 22:30:25 +02:00
2013-05-09 09:59:16 -07:00
2013-05-23 18:24:10 -07:00
2013-05-06 13:07:33 +02:00
2013-05-06 14:59:13 -07:00
2013-06-08 15:50:42 -07:00
2013-05-20 13:38:14 -07:00
2013-06-01 19:53:41 +09:00
2013-05-23 09:26:32 -07:00
2013-06-04 17:25:18 -07:00
2013-05-15 10:58:22 -07:00
2013-05-07 14:04:56 -07:00
2013-05-07 14:02:00 -07:00
2013-06-06 16:34:11 -07:00
2013-06-05 08:54:16 -06:00
2013-05-04 12:31:18 -07:00
2013-05-04 12:31:18 -07:00