summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRakesh Goyal <rgoyal@nvidia.com>2012-01-26 04:36:49 +0530
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-31 04:29:33 -0800
commit9fa5a085d5eb4ad97dd246223c51138e88c6e5e7 (patch)
tree0b6cc4dac4c75a252e6e0c01d1baeb0b342e7659 /include
parentba24e7b6267f5a4b7ed3c5607d6d2477a804bd41 (diff)
include: wl_wilink: define dummy st_ll_getstate() when !CONFIG_TI_ST
Few board specific calls use this function. Compilation fails if calls from the board file is not protected by CONFIG_TI_ST, which is not recommended. Bug 926128 Reviewed-on: http://git-master/r/77435 Change-Id: Idb4fa9001a102f1cb983afd131bfd4c0c8cf08f3 Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/78020 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'include')
-rw-r--r--include/linux/ti_wilink_st.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ti_wilink_st.h b/include/linux/ti_wilink_st.h
index 27eca07dd657..f1aa0ecc5890 100644
--- a/include/linux/ti_wilink_st.h
+++ b/include/linux/ti_wilink_st.h
@@ -386,7 +386,12 @@ void st_ll_disable(struct st_data_s *);
* various funcs used by ST core to set/get the various PM states
* of the chip.
*/
+
+#ifdef CONFIG_TI_ST
unsigned long st_ll_getstate(struct st_data_s *);
+#else
+static inline unsigned long st_ll_getstate(struct st_data_s *ll){ return 0; }
+#endif
unsigned long st_ll_sleep_state(struct st_data_s *, unsigned char);
void st_ll_wakeup(struct st_data_s *);