msm: camera: Close camera sub modules, sudevices & video node

The camera kernel module fds needs to be closed when the camera
server crashes. Flush all real time node requests and issue
shutdown call to all associated sub devices and modules.

Change-Id: I8d4f76c14316b88a61e74941f990fbe3f0095ad7
Signed-off-by: Soundrapandian Jeyaprakash <jsoundra@codeaurora.org>
Signed-off-by: Karthik Anantha Ram <kartanan@codeaurora.org>
diff --git a/drivers/media/platform/msm/camera/cam_sensor_module/cam_flash/cam_flash_dev.h b/drivers/media/platform/msm/camera/cam_sensor_module/cam_flash/cam_flash_dev.h
index 1897eb6..1583c27 100644
--- a/drivers/media/platform/msm/camera/cam_sensor_module/cam_flash/cam_flash_dev.h
+++ b/drivers/media/platform/msm/camera/cam_sensor_module/cam_flash/cam_flash_dev.h
@@ -49,6 +49,7 @@
 
 enum cam_flash_state {
 	CAM_FLASH_STATE_INIT,
+	CAM_FLASH_STATE_ACQUIRE,
 	CAM_FLASH_STATE_LOW,
 	CAM_FLASH_STATE_HIGH,
 	CAM_FLASH_STATE_RELEASE,