summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/video/msm_dba.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/video/msm_dba.h b/include/video/msm_dba.h
index a0a3fdfbfcf1..7cc346ee0d33 100644
--- a/include/video/msm_dba.h
+++ b/include/video/msm_dba.h
@@ -487,8 +487,15 @@ struct msm_dba_ops {
* chip. If Successful, this will return a pointer that should be used as a
* handle for all subsequent function calls.
*/
+#ifdef CONFIG_MSM_DBA
void *msm_dba_register_client(struct msm_dba_reg_info *info,
struct msm_dba_ops *ops);
+#else
+static inline void *msm_dba_register_client(struct msm_dba_reg_info *info,
+ struct msm_dba_ops *ops) {
+ return NULL;
+}
+#endif
/**
* msm_dba_deregister_client() - Allows client to de-register with the driver.