From: Wenyou Yang Date: Wed, 11 Mar 2015 02:08:12 +0000 (+0800) Subject: ARM: at91: pm_slowclock: fix the compilation error X-Git-Tag: v5.15~16158^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7b848d731cdf681e06138a2ae4380220a6baac8;p=platform%2Fkernel%2Flinux-starfive.git ARM: at91: pm_slowclock: fix the compilation error When compiling the kernel in thumb2 (CONFIG_THUMB2_KERNEL option activated), we hit a compilation crash. The error message is listed below: ---8< ----- Error: cannot use register index with PC-relative addressing -- `str r0,.saved_lpr' --->8---- Add the .arm directive in the assembly files related to power management. Signed-off-by: Wenyou Yang Signed-off-by: Nicolas Ferre --- diff --git a/arch/arm/mach-at91/pm_slowclock.S b/arch/arm/mach-at91/pm_slowclock.S index 8ab80e5..931f0e3 100644 --- a/arch/arm/mach-at91/pm_slowclock.S +++ b/arch/arm/mach-at91/pm_slowclock.S @@ -70,6 +70,8 @@ tmp2 .req r5 .text + .arm + /* void at91_slow_clock(void __iomem *pmc, void __iomem *sdramc, * void __iomem *ramc1, int memctrl) */