Skip to contentSkip to conversation

ARM: mxs: stub out mxs_pm_init for !CONFIG_PM

PATCH Marek Vasut 1 participant 1 message Oct 1, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

From: Arnd Bergmann <[email protected]>

When building a kernel without CONFIG_PM, we get a link error from referencing mxs_pm_init in the machine descriptor. This defines a macro to NULL for that case.

Upstream commit: 7a9caf59f60e55a8caf96f856713bd0ef0cc25a7

From: Arnd Bergmann <[email protected]>

Cc Shawn Guo <[email protected]>
Cc stable at vger.kernel.org
arch/arm/mach-mxs/pm.h +4 -0
index f57e7cd..09d77b0 100644
@@ -9,6 +9,10 @@
 #ifndef __ARCH_MXS_PM_H
 #define __ARCH_MXS_PM_H
 
+#ifdef CONFIG_PM
 void mxs_pm_init(void);
+#else
+#define mxs_pm_init NULL
+#endif
 
 #endif