summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2011-08-26 10:58:30 +0800
committerAnson Huang <b20788@freescale.com>2011-08-26 10:58:30 +0800
commit80f8da707a0c639bc6fe0bb2daf01baf1eb367b3 (patch)
tree6cc85d41e29a4fbb7673bcbb071391a8dcda6366 /arch
parent26ff18ae04c390980824dccf9076c443e9b9b8f4 (diff)
ENGR00155391-1 [MX6]Clean up build warning
Fix build warning. Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/platsmp.c2
-rw-r--r--arch/arm/plat-mxc/cpu.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/platsmp.c b/arch/arm/mach-mx6/platsmp.c
index 5155efe0d6da..1ea1200f69a0 100644
--- a/arch/arm/mach-mx6/platsmp.c
+++ b/arch/arm/mach-mx6/platsmp.c
@@ -94,7 +94,7 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
val = jiffies;
/* wait cpu<n> boot up and clear boot_entry, timeout is 500ms */
while (__raw_readl(src_base + SRC_GPR1_OFFSET + 4 * 2 * cpu) != 0) {
- if (time_after(jiffies, val + HZ / 2)) {
+ if (time_after(jiffies, (unsigned long)(val + HZ / 2))) {
printk(KERN_WARNING "cpu %d: boot up failed!\n", cpu);
break;
}
diff --git a/arch/arm/plat-mxc/cpu.c b/arch/arm/plat-mxc/cpu.c
index 70d26f2d7822..f69d07bd7289 100644
--- a/arch/arm/plat-mxc/cpu.c
+++ b/arch/arm/plat-mxc/cpu.c
@@ -17,6 +17,7 @@
*/
#include <linux/module.h>
+#include <mach/clock.h>
unsigned int __mxc_cpu_type;
EXPORT_SYMBOL(__mxc_cpu_type);