diff options
author | Andy Green <andy@openmoko.com> | 2009-03-03 17:25:02 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-03-03 17:25:02 +0000 |
commit | b9de904e7aadd7b37c4035fd5d6f59e5f80089b6 (patch) | |
tree | 81015365db8852b914273de7524bec8f47f7fdda /arch/arm/mach-s3c6410 | |
parent | 75d17a700b015cd5e99636db035c8bd1324eeca4 (diff) |
fix-hdq-sample-period-calc.patch
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch/arm/mach-s3c6410')
-rw-r--r-- | arch/arm/mach-s3c6410/mach-om-3d7k.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-s3c6410/mach-om-3d7k.c b/arch/arm/mach-s3c6410/mach-om-3d7k.c index 6afd12e487d..e52561d5a67 100644 --- a/arch/arm/mach-s3c6410/mach-om-3d7k.c +++ b/arch/arm/mach-s3c6410/mach-om-3d7k.c @@ -95,7 +95,7 @@ extern struct platform_device s3c_device_usbgadget; #define DIVISOR_FROM_US(x) ((x) * 23) #ifdef CONFIG_HDQ_GPIO_BITBANG -#define FIQ_DIVISOR_HDQ DIVISOR_FROM_US(20) +#define FIQ_DIVISOR_HDQ DIVISOR_FROM_US(HDQ_SAMPLE_PERIOD_US) extern int hdq_fiq_handler(void); #endif @@ -128,7 +128,7 @@ static void om_3d7k_fiq_handler(void) #ifdef CONFIG_HDQ_GPIO_BITBANG if (hdq_fiq_handler()) - divisor = FIQ_DIVISOR_HDQ; + divisor = (u16)FIQ_DIVISOR_HDQ; #endif if (divisor == 0xffff) /* mask the fiq irq source */ |