diff options
author | Nicolas Pitre <nico@cam.org> | 2005-06-23 21:56:45 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-06-23 21:56:45 +0100 |
commit | bf1b8ab6f21e1adbab1abd1b4e71c35fe65dc5fe (patch) | |
tree | ac1795e8529a5165458dafc94b230053f1ae92a4 /drivers/video | |
parent | b7c84c6ada2be942eca6722edb2cfaad412cd5de (diff) | |
download | kernel_samsung_crespo-bf1b8ab6f21e1adbab1abd1b4e71c35fe65dc5fe.zip kernel_samsung_crespo-bf1b8ab6f21e1adbab1abd1b4e71c35fe65dc5fe.tar.gz kernel_samsung_crespo-bf1b8ab6f21e1adbab1abd1b4e71c35fe65dc5fe.tar.bz2 |
[PATCH] ARM: 2721/1: remove reliance on udivdi3 for pxafb driver
Patch from Nicolas Pitre
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/pxafb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c index 815fbc8..16e37a5 100644 --- a/drivers/video/pxafb.c +++ b/drivers/video/pxafb.c @@ -43,6 +43,7 @@ #include <asm/io.h> #include <asm/irq.h> #include <asm/uaccess.h> +#include <asm/div64.h> #include <asm/arch/pxa-regs.h> #include <asm/arch/bitfield.h> #include <asm/arch/pxafb.h> @@ -460,7 +461,7 @@ static inline unsigned int get_pcd(unsigned int pixclock) * speeds */ pcd = (unsigned long long)get_lcdclk_frequency_10khz() * pixclock; - pcd /= 100000000 * 2; + do_div(pcd, 100000000 * 2); /* no need for this, since we should subtract 1 anyway. they cancel */ /* pcd += 1; */ /* make up for integer math truncations */ return (unsigned int)pcd; |