diff options
author | Kamil Debski <k.debski@samsung.com> | 2013-05-21 16:54:10 +0200 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-03-20 17:34:15 +0900 |
commit | e1f89ef21fa681c085979c8bbdc610ec0d2e18d7 (patch) | |
tree | 91ca94a962c3b1072701f8e9519fa81549a63e8f /drivers/misc/modem_if/sipc5_modem.c | |
parent | f0167e0799e45304621c5c7da6985d4e421f6a0f (diff) | |
download | linux-3.10-e1f89ef21fa681c085979c8bbdc610ec0d2e18d7.tar.gz linux-3.10-e1f89ef21fa681c085979c8bbdc610ec0d2e18d7.tar.bz2 linux-3.10-e1f89ef21fa681c085979c8bbdc610ec0d2e18d7.zip |
modem_if: ifdef wake_lock support in the modem driver
Wake_locks are not supported outside of Android so it is essential to
make their use optional.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/misc/modem_if/sipc5_modem.c')
-rw-r--r-- | drivers/misc/modem_if/sipc5_modem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/modem_if/sipc5_modem.c b/drivers/misc/modem_if/sipc5_modem.c index ccfad5fee3d..f7662df189c 100644 --- a/drivers/misc/modem_if/sipc5_modem.c +++ b/drivers/misc/modem_if/sipc5_modem.c @@ -31,7 +31,9 @@ #include <linux/irq.h> #include <linux/gpio.h> #include <linux/delay.h> +#ifdef CONFIG_HAS_WAKELOCK #include <linux/wakelock.h> +#endif #include <linux/rbtree.h> #include <linux/platform_data/modem.h> @@ -196,6 +198,7 @@ static int attach_devices(struct io_device *iod, enum modem_link tx_link) BUG(); } +#ifdef CONFIG_HAS_WAKELOCK switch (iod->format) { case IPC_FMT: wake_lock_init(&iod->wakelock, WAKE_LOCK_SUSPEND, iod->name); @@ -225,6 +228,7 @@ static int attach_devices(struct io_device *iod, enum modem_link tx_link) default: break; } +#endif return 0; } |