summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/zoran
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-07-20 15:18:19 +0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-11 11:59:58 +0200
commit8148802f186bc09b7d61f9be5cb8d287928c8b50 (patch)
treec336a3e16545f8b44e0754fd55c9d9c9b25d2464 /drivers/media/pci/zoran
parent[media] zoran: remove unnecessary memset (diff)
downloadlinux-8148802f186bc09b7d61f9be5cb8d287928c8b50.tar.xz
linux-8148802f186bc09b7d61f9be5cb8d287928c8b50.zip
[media] zoran: remove unused read/write functions
The zoran_read/write functions always return an error. Just remove them. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/zoran')
-rw-r--r--drivers/media/pci/zoran/zoran_driver.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/media/pci/zoran/zoran_driver.c b/drivers/media/pci/zoran/zoran_driver.c
index 25cd18b15d31..3d3a0c0c72cf 100644
--- a/drivers/media/pci/zoran/zoran_driver.c
+++ b/drivers/media/pci/zoran/zoran_driver.c
@@ -1032,29 +1032,6 @@ zoran_close(struct file *file)
return 0;
}
-
-static ssize_t
-zoran_read (struct file *file,
- char __user *data,
- size_t count,
- loff_t *ppos)
-{
- /* we simply don't support read() (yet)... */
-
- return -EINVAL;
-}
-
-static ssize_t
-zoran_write (struct file *file,
- const char __user *data,
- size_t count,
- loff_t *ppos)
-{
- /* ...and the same goes for write() */
-
- return -EINVAL;
-}
-
static int setup_fbuffer(struct zoran_fh *fh,
void *base,
const struct zoran_format *fmt,
@@ -3052,8 +3029,6 @@ static const struct v4l2_file_operations zoran_fops = {
.open = zoran_open,
.release = zoran_close,
.unlocked_ioctl = zoran_ioctl,
- .read = zoran_read,
- .write = zoran_write,
.mmap = zoran_mmap,
.poll = zoran_poll,
};