summaryrefslogtreecommitdiff
path: root/drivers/misc/modem_if/modem_prj.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/modem_if/modem_prj.h')
-rw-r--r--drivers/misc/modem_if/modem_prj.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/misc/modem_if/modem_prj.h b/drivers/misc/modem_if/modem_prj.h
index 4780bef3676..d7ab4843687 100644
--- a/drivers/misc/modem_if/modem_prj.h
+++ b/drivers/misc/modem_if/modem_prj.h
@@ -20,7 +20,9 @@
#include <linux/miscdevice.h>
#include <linux/skbuff.h>
#include <linux/completion.h>
+#ifdef CONFIG_HAS_WAKELOCK
#include <linux/wakelock.h>
+#endif
#include <linux/rbtree.h>
#include <linux/spinlock.h>
#include <linux/types.h>
@@ -351,7 +353,9 @@ struct io_device {
struct modem_ctl *mc;
struct modem_shared *msd;
+#ifdef CONFIG_HAS_WAKELOCK
struct wake_lock wakelock;
+#endif
long waketime;
/* DO NOT use __current_link directly
@@ -554,6 +558,8 @@ struct modem_ctl {
#endif /*CONFIG_LTE_MODEM_CMC221*/
#if defined(CONFIG_MACH_GRANDE)
struct delayed_work sim_det_dwork;
+#ifdef CONFIG_HAS_WAKELOCK
+#endif
#endif /* For checking sim detect pin */
struct work_struct work;
@@ -570,7 +576,9 @@ struct modem_ctl {
struct io_device *bootd;
/* Wakelock for modem_ctl */
+#ifdef CONFIG_HAS_WAKELOCK
struct wake_lock mc_wake_lock;
+#endif
void (*gpio_revers_bias_clear)(void);
void (*gpio_revers_bias_restore)(void);