ARM: mxs: Fix mxs_pm_init if CONFIG_PM undefined
Subsystems (3)
PATCH 1/1 ARM: mxs: Fix mxs_pm_init if CONFIG_PM undefined
In case the CONFIG_PM is not defined, the mxs_pm_init() from pm.c is not compiled and therefore mxs_pm_init() is not available. Make sure that the kernel builds even if CONFIG_PM is not defined.
--- arch/arm/mach-mxs/pm.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/mach-mxs/pm.h +4 -0
@@ -9,6 +9,10 @@#ifndef __ARCH_MXS_PM_H#define __ARCH_MXS_PM_H +#ifdef CONFIG_PM void mxs_pm_init (void ); +#else +static inline void mxs_pm_init (void ) {} +#endif #endif
Signature · 1 line
1.7.10.4
Fabio Estevam
reviewerPATCH 1/1 ARM: mxs: Fix mxs_pm_init if CONFIG_PM undefined
Quoted 6 lines · Marek Vasut
In case the
CONFIG_PMis not defined, themxs_pm_init()frompm.cis not compiled and thereforemxs_pm_init()is not available. Make sure that the kernel builds even ifCONFIG_PMis not defined.Signed-off-by Marek Vasut <[email protected]>Cc Shawn Guo <[email protected]>
Arnd has already sent a fix for this:
http://www.spinics.net/lists/arm-kernel/msg254288.html
PATCH 1/1 ARM: mxs: Fix mxs_pm_init if CONFIG_PM undefined
Dear Fabio Estevam,
Quoted 10 lines · Marek Vasut
Quoted 6 lines
In case the
CONFIG_PMis not defined, themxs_pm_init()frompm.cis not compiled and thereforemxs_pm_init()is not available. Make sure that the kernel builds even ifCONFIG_PMis not defined.Signed-off-by Marek Vasut <[email protected]>Cc Shawn Guo <[email protected]>Arnd has already sent a fix for this:
http://www.spinics.net/lists/arm-kernel/msg254288.html
Ok, thanks. Will this hit 3.10 in any subsequent update?
Best regards,
Marek Vasut