summaryrefslogtreecommitdiff
path: root/drivers/staging/bcm/InterfaceInit.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-09-30 08:24:07 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-05 15:50:14 (GMT)
commitd16044cf8ce0ff6384cd80eb0abaa2ba57b19a5e (patch)
treeac95dc8df12c484d2ff36afccb3e9bd654c05e11 /drivers/staging/bcm/InterfaceInit.c
parentcff55f50b882b197a52c4cf0108a43c615d1fdba (diff)
downloadlinux-fsl-qoriq-d16044cf8ce0ff6384cd80eb0abaa2ba57b19a5e.tar.xz
staging: make new character devices nonseekable
As a preparation for changing the default behaviour of llseek to no_llseek, every file_operations structure should have a .llseek operation. There are three new instances in staging now, which can all be changed into no_llseek explicitly since the devices do not need to seek. Add nonseekable_open where appropriate, to prevent pread/pwrite as well. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/bcm/InterfaceInit.c')
-rw-r--r--drivers/staging/bcm/InterfaceInit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/bcm/InterfaceInit.c b/drivers/staging/bcm/InterfaceInit.c
index d22a0e5..67d8572 100644
--- a/drivers/staging/bcm/InterfaceInit.c
+++ b/drivers/staging/bcm/InterfaceInit.c
@@ -163,6 +163,7 @@ static struct file_operations usbbcm_fops = {
.read = usbbcm_read,
.write = usbbcm_write,
.owner = THIS_MODULE,
+ .llseek = no_llseek,
};
static struct usb_class_driver usbbcm_class = {