Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7093bf2b authored by Brent Taylor's avatar Brent Taylor Committed by Nicolas Ferre
Browse files

ARM: at91: fixed unresolved symbol "at91_pm_set_standby" when built without CONFIG_PM



If CONFIG_PM is not defined, then arch/arm/mach-at91/pm.c is not
compiled in.  This patch creates an inline function that does nothing
if CONFIG_PM is not defined.

Signed-off-by: default avatarBrent Taylor <motobud@gmail.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent d2607c3b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -16,7 +16,11 @@
#include <mach/at91_ramc.h>
#include <mach/at91rm9200_sdramc.h>

#ifdef CONFIG_PM
extern void at91_pm_set_standby(void (*at91_standby)(void));
#else
static inline void at91_pm_set_standby(void (*at91_standby)(void)) { }
#endif

/*
 * The AT91RM9200 goes into self-refresh mode with this command, and will