Sfoglia il codice sorgente

ARM: mxs: stub out mxs_pm_init for !CONFIG_PM

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.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Arnd Bergmann 12 anni fa
parent
commit
7a9caf59f6
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      arch/arm/mach-mxs/pm.h

+ 4 - 0
arch/arm/mach-mxs/pm.h

@@ -9,6 +9,10 @@
 #ifndef __ARCH_MXS_PM_H
 #ifndef __ARCH_MXS_PM_H
 #define __ARCH_MXS_PM_H
 #define __ARCH_MXS_PM_H
 
 
+#ifdef CONFIG_PM
 void mxs_pm_init(void);
 void mxs_pm_init(void);
+#else
+#define mxs_pm_init NULL
+#endif
 
 
 #endif
 #endif