aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dsp/syslink
diff options
context:
space:
mode:
authorSubramaniam C.A <subramaniam.ca@ti.com>2011-02-14 19:21:21 -0500
committerPaolo Pisati <paolo.pisati@canonical.com>2012-08-17 04:19:16 -0400
commit4c1549fe859f1fc5acc80880d3d9658696a07634 (patch)
tree825f10ad6410df307750e230ef3d49bf9ac864a4 /drivers/dsp/syslink
parent95db07d10d0ec02390c3f8c8d432295821d9e95d (diff)
SYSLINK: Use unlocked_ioctl instead of ioctl
This patch uses unlocked_ioctl instead of ioctl in all SysLink drivers. The support for ioctl was removed since BKL is not to be used anymore. Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com>
Diffstat (limited to 'drivers/dsp/syslink')
-rw-r--r--drivers/dsp/syslink/devh/devh.c6
-rw-r--r--drivers/dsp/syslink/multicore_ipc/ipc_drv.c4
-rw-r--r--drivers/dsp/syslink/procmgr/proc4430/proc4430_drv.c7
-rw-r--r--drivers/dsp/syslink/procmgr/procmgr_drv.c7
4 files changed, 11 insertions, 13 deletions
diff --git a/drivers/dsp/syslink/devh/devh.c b/drivers/dsp/syslink/devh/devh.c
index 0e3cabe665f..609bb312be2 100644
--- a/drivers/dsp/syslink/devh/devh.c
+++ b/drivers/dsp/syslink/devh/devh.c
@@ -65,8 +65,8 @@ static int omap_devh_release(struct inode *inode, struct file *filp)
65 return 0; 65 return 0;
66} 66}
67 67
68static int omap_devh_ioctl(struct inode *inode, struct file *filp, 68static long omap_devh_ioctl(struct file *filp, unsigned int cmd,
69 unsigned int cmd, unsigned long arg) 69 unsigned long arg)
70{ 70{
71 int rc = 0; 71 int rc = 0;
72 struct omap_devh *devh = filp->private_data; 72 struct omap_devh *devh = filp->private_data;
@@ -117,7 +117,7 @@ static int omap_devh_ioctl(struct inode *inode, struct file *filp,
117static const struct file_operations omap_devh_fops = { 117static const struct file_operations omap_devh_fops = {
118 .open = omap_devh_open, 118 .open = omap_devh_open,
119 .release = omap_devh_release, 119 .release = omap_devh_release,
120 .ioctl = omap_devh_ioctl, 120 .unlocked_ioctl = omap_devh_ioctl,
121 .owner = THIS_MODULE, 121 .owner = THIS_MODULE,
122}; 122};
123 123
diff --git a/drivers/dsp/syslink/multicore_ipc/ipc_drv.c b/drivers/dsp/syslink/multicore_ipc/ipc_drv.c
index f7b0e8c687c..d3c5a1b279e 100644
--- a/drivers/dsp/syslink/multicore_ipc/ipc_drv.c
+++ b/drivers/dsp/syslink/multicore_ipc/ipc_drv.c
@@ -239,7 +239,7 @@ err:
239 * This function provides IO interface to the 239 * This function provides IO interface to the
240 * ipc driver 240 * ipc driver
241 */ 241 */
242static int ipc_ioctl(struct inode *ip, struct file *filp, u32 cmd, ulong arg) 242static long ipc_ioctl(struct file *filp, u32 cmd, ulong arg)
243{ 243{
244 s32 retval = 0; 244 s32 retval = 0;
245 void __user *argp = (void __user *)arg; 245 void __user *argp = (void __user *)arg;
@@ -267,7 +267,7 @@ exit:
267static const struct file_operations ipc_fops = { 267static const struct file_operations ipc_fops = {
268 .open = ipc_open, 268 .open = ipc_open,
269 .release = ipc_release, 269 .release = ipc_release,
270 .ioctl = ipc_ioctl, 270 .unlocked_ioctl = ipc_ioctl,
271 .read = notify_drv_read, 271 .read = notify_drv_read,
272 .mmap = notify_drv_mmap, 272 .mmap = notify_drv_mmap,
273}; 273};
diff --git a/drivers/dsp/syslink/procmgr/proc4430/proc4430_drv.c b/drivers/dsp/syslink/procmgr/proc4430/proc4430_drv.c
index 5564c3f05b2..9a334b372a3 100644
--- a/drivers/dsp/syslink/procmgr/proc4430/proc4430_drv.c
+++ b/drivers/dsp/syslink/procmgr/proc4430/proc4430_drv.c
@@ -66,8 +66,7 @@ static int proc4430_drv_open(struct inode *inode, struct file *filp);
66static int proc4430_drv_release(struct inode *inode, struct file *filp); 66static int proc4430_drv_release(struct inode *inode, struct file *filp);
67 67
68/* Linux driver function to invoke the APIs through ioctl. */ 68/* Linux driver function to invoke the APIs through ioctl. */
69static int proc4430_drv_ioctl(struct inode *inode, 69static long proc4430_drv_ioctl(struct file *filp, unsigned int cmd,
70 struct file *filp, unsigned int cmd,
71 unsigned long args); 70 unsigned long args);
72 71
73/* Linux driver function to map memory regions to user space. */ 72/* Linux driver function to map memory regions to user space. */
@@ -97,7 +96,7 @@ struct proc4430_process_context {
97static const struct file_operations proc_4430_fops = { 96static const struct file_operations proc_4430_fops = {
98 .open = proc4430_drv_open, 97 .open = proc4430_drv_open,
99 .release = proc4430_drv_release, 98 .release = proc4430_drv_release,
100 .ioctl = proc4430_drv_ioctl, 99 .unlocked_ioctl = proc4430_drv_ioctl,
101 .mmap = proc4430_drv_mmap, 100 .mmap = proc4430_drv_mmap,
102}; 101};
103 102
@@ -141,7 +140,7 @@ err:
141 Linux driver function to invoke the APIs through ioctl. 140 Linux driver function to invoke the APIs through ioctl.
142 * 141 *
143 */ 142 */
144static int proc4430_drv_ioctl(struct inode *inode, struct file *filp, 143static long proc4430_drv_ioctl(struct file *filp,
145 unsigned int cmd, unsigned long args) 144 unsigned int cmd, unsigned long args)
146{ 145{
147 int retval = 0; 146 int retval = 0;
diff --git a/drivers/dsp/syslink/procmgr/procmgr_drv.c b/drivers/dsp/syslink/procmgr/procmgr_drv.c
index fb8159fd4d4..dfcafcda6a6 100644
--- a/drivers/dsp/syslink/procmgr/procmgr_drv.c
+++ b/drivers/dsp/syslink/procmgr/procmgr_drv.c
@@ -62,8 +62,7 @@ static int proc_mgr_drv_open(struct inode *inode, struct file *filp);
62static int proc_mgr_drv_release(struct inode *inode, struct file *filp); 62static int proc_mgr_drv_release(struct inode *inode, struct file *filp);
63 63
64/* Linux driver function to invoke the APIs through ioctl. */ 64/* Linux driver function to invoke the APIs through ioctl. */
65static int proc_mgr_drv_ioctl(struct inode *inode, 65static long proc_mgr_drv_ioctl(struct file *filp,
66 struct file *filp,
67 unsigned int cmd, 66 unsigned int cmd,
68 unsigned long args); 67 unsigned long args);
69 68
@@ -90,7 +89,7 @@ static int __devexit proc_mgr_remove(struct platform_device *pdev);
90 */ 89 */
91static const struct file_operations procmgr_fops = { 90static const struct file_operations procmgr_fops = {
92 .open = proc_mgr_drv_open, 91 .open = proc_mgr_drv_open,
93 .ioctl = proc_mgr_drv_ioctl, 92 .unlocked_ioctl = proc_mgr_drv_ioctl,
94 .release = proc_mgr_drv_release, 93 .release = proc_mgr_drv_release,
95 .mmap = proc_mgr_drv_mmap, 94 .mmap = proc_mgr_drv_mmap,
96} ; 95} ;
@@ -159,7 +158,7 @@ err:
159/* 158/*
160* Linux driver function to invoke the APIs through ioctl. 159* Linux driver function to invoke the APIs through ioctl.
161 */ 160 */
162static int proc_mgr_drv_ioctl(struct inode *inode, struct file *filp, 161static long proc_mgr_drv_ioctl(struct file *filp,
163 unsigned int cmd, unsigned long args) 162 unsigned int cmd, unsigned long args)
164{ 163{
165 int retval = 0; 164 int retval = 0;