diff --git a/arch/arm/mach-rk29/include/mach/debug-macro.S b/arch/arm/mach-rk29/include/mach/debug-macro.S index 8637a82fde4d..9c86875157c7 100644 --- a/arch/arm/mach-rk29/include/mach/debug-macro.S +++ b/arch/arm/mach-rk29/include/mach/debug-macro.S @@ -15,6 +15,7 @@ /* pull in the relevant register and map files. */ +#include #include /* note, for the boot process to work we have to keep the UART @@ -23,7 +24,11 @@ * aligned and add in the offset when we load the value here. */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 34)) + .macro addruart, rx, tmp +#else .macro addruart, rx +#endif mrc p15, 0, \rx, c1, c0 tst \rx, #1 ldreq \rx, = RK29_UART1_PHYS