diff options
author | Eric Miao <eric.miao@linaro.org> | 2011-12-21 15:38:23 +0100 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2011-12-26 03:18:56 +0100 |
commit | 46ec1b26901ea7bd0dc3287e8dbd1221b3a51fed (patch) | |
tree | 158a6a656b8df014b10d97d2fc15648a400325aa /arch/arm/plat-mxc/include/mach/common.h | |
parent | ARM: mx5: use generic irq chip pm interface for pm functions on (diff) | |
download | linux-46ec1b26901ea7bd0dc3287e8dbd1221b3a51fed.tar.xz linux-46ec1b26901ea7bd0dc3287e8dbd1221b3a51fed.zip |
ARM: imx6q: build pm code only when CONFIG_PM selected
Signed-off-by: Eric Miao <eric.miao@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/common.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h index c75f254abd85..f4ebdb817abf 100644 --- a/arch/arm/plat-mxc/include/mach/common.h +++ b/arch/arm/plat-mxc/include/mach/common.h @@ -131,6 +131,12 @@ extern void imx53_evk_common_init(void); extern void imx53_qsb_common_init(void); extern void imx53_smd_common_init(void); extern int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode); -extern void imx6q_pm_init(void); extern void imx6q_clock_map_io(void); + +#ifdef CONFIG_PM +extern void imx6q_pm_init(void); +#else +static inline void imx6q_pm_init(void) {} +#endif + #endif |