msm: board-8960-camera: fix the build breakage
if not defined CONFIG_MSM_CAMERA_FLASH, couldn't build kernel.
to fix it, wrap codes related to camera flash with CONFIG_MSM_CAMERA_FLASH
Change-Id: I7153701d9b312914e789e1c71adb4e1c6b855899
diff --git a/arch/arm/mach-msm/board-8960-camera.c b/arch/arm/mach-msm/board-8960-camera.c
index b6c03a4..8acee09 100644
--- a/arch/arm/mach-msm/board-8960-camera.c
+++ b/arch/arm/mach-msm/board-8960-camera.c
@@ -21,6 +21,7 @@
#ifdef CONFIG_MSM_CAMERA
+#ifdef CONFIG_MSM_CAMERA_FLASH
#if (defined(CONFIG_GPIO_SX150X) || defined(CONFIG_GPIO_SX150X_MODULE)) && \
defined(CONFIG_I2C)
@@ -38,6 +39,7 @@
},
};
#endif
+#endif
static struct gpiomux_setting cam_settings[] = {
{
@@ -729,6 +731,7 @@
if (machine_is_msm8960_cdp()) {
msm_gpiomux_install(msm8960_cdp_flash_configs,
ARRAY_SIZE(msm8960_cdp_flash_configs));
+#ifdef CONFIG_MSM_CAMERA_FLASH
msm_flash_src._fsrc.ext_driver_src.led_en =
GPIO_CAM_GP_LED_EN1;
msm_flash_src._fsrc.ext_driver_src.led_flash_en =
@@ -738,6 +741,7 @@
msm_flash_src._fsrc.ext_driver_src.expander_info =
cam_expander_info;
#endif
+#endif
}
if (machine_is_msm8960_liquid()) {