summaryrefslogtreecommitdiff
path: root/drivers/misc/modem_if/sipc5_io_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/modem_if/sipc5_io_device.c')
-rw-r--r--drivers/misc/modem_if/sipc5_io_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/misc/modem_if/sipc5_io_device.c b/drivers/misc/modem_if/sipc5_io_device.c
index 9e22e9cb718..636e191997b 100644
--- a/drivers/misc/modem_if/sipc5_io_device.c
+++ b/drivers/misc/modem_if/sipc5_io_device.c
@@ -855,8 +855,10 @@ static int io_dev_recv_data_from_link_dev(struct io_device *iod,
case IPC_RAW:
case IPC_RFS:
case IPC_MULTI_RAW:
+#ifdef CONFIG_HAS_WAKELOCK
if (iod->waketime)
wake_lock_timeout(&iod->wakelock, iod->waketime);
+#endif
if (ld->link_type == LINKDEV_DPRAM && ld->aligned)
err = rx_frame_from_mem(iod, ld, data, len);
@@ -957,8 +959,10 @@ static int io_dev_recv_skb_from_link_dev(struct io_device *iod,
case IPC_RAW:
case IPC_RFS:
case IPC_MULTI_RAW:
+#ifdef CONFIG_HAS_WAKELOCK
if (iod->waketime)
wake_lock_timeout(&iod->wakelock, iod->waketime);
+#endif
err = rx_frame_from_skb(iod, ld, skb);
if (err < 0) {