msm: pm-boot: Fix compilation when PM is disabled
Add config macros for PM to fix compilation when
CONFIG_PM is disabled
Change-Id: If1132785cf2f831a94cc03010189ae852e11f766
Signed-off-by: Chintan Pandya <cpandya@codeaurora.org>
diff --git a/arch/arm/mach-msm/pm-boot.h b/arch/arm/mach-msm/pm-boot.h
index 7e1a439..2234192 100644
--- a/arch/arm/mach-msm/pm-boot.h
+++ b/arch/arm/mach-msm/pm-boot.h
@@ -18,7 +18,14 @@
MSM_PM_BOOT_CONFIG_RESET_VECTOR = 1,
};
+#ifdef CONFIG_PM
int __init msm_pm_boot_init(int boot_config, uint32_t* address);
+#else
+static inline int __init msm_pm_boot_init(int boot_config, uint32_t* address)
+{
+ return 0;
+}
+#endif
void msm_pm_boot_config_before_pc(unsigned int cpu, unsigned long entry);
void msm_pm_boot_config_after_pc(unsigned int cpu);