Commit 37482f9c authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

ARM: mxs: stub out mxs_pm_init for !CONFIG_PM

commit 7a9caf59 upstream.

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: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ddcca42f
...@@ -9,6 +9,10 @@ ...@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment