summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2015-03-11 03:08:12 +0100
committerNicolas Ferre <nicolas.ferre@atmel.com>2015-03-11 15:49:47 +0100
commite7b848d731cdf681e06138a2ae4380220a6baac8 (patch)
tree959422fb3c41df87b5d5510aeb3a3849792f1ddb
parentARM: at91/dt: fix USB high-speed clock to select UTMI (diff)
downloadlinux-e7b848d731cdf681e06138a2ae4380220a6baac8.tar.xz
linux-e7b848d731cdf681e06138a2ae4380220a6baac8.zip
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 <wenyou.yang@atmel.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
-rw-r--r--arch/arm/mach-at91/pm_slowclock.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/pm_slowclock.S b/arch/arm/mach-at91/pm_slowclock.S
index 8ab80e579be0..931f0e302c03 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)
*/