summaryrefslogtreecommitdiffstats
path: root/drivers/staging/panel
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-07 23:40:09 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-08 13:57:58 -0700
commit3ff81013699000f2d55e78efadb03a6e2beddb7a (patch)
tree5600c42d85ebfa7e2f10a460b11570a75f34076d /drivers/staging/panel
parentaf6d2b2a3d43d25aa4e205c029ee737642cc4ec2 (diff)
Staging: use llseek in all file operations
These could not be detected by the semantic patch. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/staging/panel')
-rw-r--r--drivers/staging/panel/panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/panel/panel.c b/drivers/staging/panel/panel.c
index 6fa57beeccb..8bd7182195b 100644
--- a/drivers/staging/panel/panel.c
+++ b/drivers/staging/panel/panel.c
@@ -1356,7 +1356,7 @@ static int lcd_open(struct inode *inode, struct file *file)
lcd_must_clear = 0;
}
lcd_open_cnt++;
- return 0;
+ return nonseekable_open(inode, file);
}
static int lcd_release(struct inode *inode, struct file *file)
@@ -1369,6 +1369,7 @@ static const struct file_operations lcd_fops = {
.write = lcd_write,
.open = lcd_open,
.release = lcd_release,
+ .llseek = no_llseek,
};
static struct miscdevice lcd_dev = {