ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 19 Mar 2015 20:14:40 +0000 (21:14 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Sun, 5 Apr 2015 19:59:51 +0000 (21:59 +0200)
commit176a1b3dadf08835b9435bed4957daa066702a39
treef502750195f781b4ec530c185f4563ca8651ccbb
parent598e085590fc5ac1fecff00e842a8a6c2ae010e5
ARM: at91: fix pm_suspend.S compilation when ARMv6 is selected

When compiling for multiplatform for both ARMv6 and ARMv7, the default compiler
flags are for ARMv6, and results in:

arch/arm/mach-at91/pm_suspend.S:144: Error: selected processor does not support ARM mode `dsb'

Enforce ARMv7 flags for pm_suspend.o when CPU_V7 is selected.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/Makefile