[2.6.34-fixes 1/1] mx5: Fix build error for mx51_defconfig

Dinh Nguyen Dinh.Nguyen at freescale.com
Tue Apr 13 15:05:08 EDT 2010


Need to include <asm/div64.h> for do_div calls. Fixes the following error:

arch/arm/mach-mx5/clock-mx51.c: In function 'clk_pll_get_rate':
arch/arm/mach-mx5/clock-mx51.c:149: error: implicit declaration of function
'do_div'
make[1]: *** [arch/arm/mach-mx5/clock-mx51.o] Error 1

Signed-off-by: Dinh Nguyen <Dinh.Nguyen at freescale.com>
Signed-off-by: Amit Kucheria <amit.kucheria at canonical.com>
---
 arch/arm/mach-mx5/clock-mx51.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx5/clock-mx51.c b/arch/arm/mach-mx5/clock-mx51.c
index 8f85f73..1ee6ce4 100644
--- a/arch/arm/mach-mx5/clock-mx51.c
+++ b/arch/arm/mach-mx5/clock-mx51.c
@@ -16,6 +16,7 @@
 #include <linux/io.h>
 
 #include <asm/clkdev.h>
+#include <asm/div64.h>
 
 #include <mach/hardware.h>
 #include <mach/common.h>
-- 
1.7.0.4


-- 
-------------------------------------------------------------------------
Amit Kucheria,				 Kernel Developer, Verdurent
-------------------------------------------------------------------------



More information about the linux-arm-kernel mailing list