diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-05-31 04:06:22 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-06-02 11:11:44 +0300 |
commit | b2f06274337074a64ad42550f336b9f279eb835a (patch) | |
tree | 6d8ca393a0682a7cd5f53b9a0a60ab0cd4bda10c /arch/arm/mach-at91/samv7.c | |
parent | 2d4c44e979eaa846dfa63717c4f4818e11161c66 (diff) | |
download | linux-b2f06274337074a64ad42550f336b9f279eb835a.tar.xz |
ARM: at91: handle CONFIG_PM for armv7m configurations
There is currently no PM support for samx7 but the symbol can still be
selected. This avoids compilation issues.
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-at91/samv7.c')
-rw-r--r-- | arch/arm/mach-at91/samv7.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/samv7.c b/arch/arm/mach-at91/samv7.c index 11386f190c83..910f0c68db62 100644 --- a/arch/arm/mach-at91/samv7.c +++ b/arch/arm/mach-at91/samv7.c @@ -15,6 +15,15 @@ #include <asm/system_misc.h> #include "generic.h" +#ifdef CONFIG_PM +/* This function has to be defined for various drivers that are using it */ +int at91_suspend_entering_slow_clock(void) +{ + return 0; +} +EXPORT_SYMBOL(at91_suspend_entering_slow_clock); +#endif + static const char *const samv7_dt_board_compat[] __initconst = { "atmel,samv7", NULL |