[PATCH 4/9] HSI: cmt_speech: Fix build for 4.0 kernel

From: Sebastian Reichel
Date: Sun Mar 01 2015 - 23:40:12 EST


Fix building of the old out-of-tree code.

Signed-off-by: Sebastian Reichel <sre@xxxxxxxxxx>
---
drivers/hsi/clients/cmt_speech.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/hsi/clients/cmt_speech.c b/drivers/hsi/clients/cmt_speech.c
index 56846c9..6d852ea 100644
--- a/drivers/hsi/clients/cmt_speech.c
+++ b/drivers/hsi/clients/cmt_speech.c
@@ -34,9 +34,9 @@
#include <linux/sched.h>
#include <linux/ioctl.h>
#include <linux/uaccess.h>
-#include <linux/pm_qos_params.h>
+#include <linux/pm_qos.h>
#include <linux/hsi/hsi.h>
-#include <linux/hsi/ssip_slave.h>
+#include <linux/hsi/ssi_protocol.h>
#include <linux/cs-protocol.h>

#define CS_MMAP_SIZE PAGE_SIZE
@@ -126,7 +126,7 @@ struct cs_hsi_iface {
struct hsi_msg *data_tx_msg;
wait_queue_head_t datawait;

- struct pm_qos_request_list pm_qos_req;
+ struct pm_qos_request pm_qos_req;

spinlock_t lock;
};
@@ -1268,7 +1268,7 @@ static int cs_char_mmap(struct file *file, struct vm_area_struct *vma)
if (((vma->vm_end - vma->vm_start) >> PAGE_SHIFT) != 1)
return -EINVAL;

- vma->vm_flags |= VM_RESERVED;
+ vma->vm_flags |= VM_IO | VM_DONTDUMP | VM_DONTEXPAND;
vma->vm_ops = &cs_char_vm_ops;
vma->vm_private_data = file->private_data;

--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/