aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-06 17:03:55 -0400
committerArnd Bergmann <arnd@arndb.de>2010-09-16 04:33:14 -0400
commitcb3b9cf818070df1bf592b71275bcf99d8edefcb (patch)
treeb6e82e8874890dca9c2d5c9013aecada829a6ef6 /drivers
parent275bd41a6da179b4493171fa65eeeb2a9e47b316 (diff)
raw: use explicit llseek file operations
The raw_fops may need to seek, so there should be an explicit reference to default_llseek. raw_ctl_fops does not contain a read or write method, so we use noop_llseek to ignore seeking requests without an error. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/raw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/raw.c b/drivers/char/raw.c
index b38942f6bf31..28c0169e34da 100644
--- a/drivers/char/raw.c
+++ b/drivers/char/raw.c
@@ -258,6 +258,7 @@ static const struct file_operations raw_fops = {
258 .open = raw_open, 258 .open = raw_open,
259 .release = raw_release, 259 .release = raw_release,
260 .unlocked_ioctl = raw_ioctl, 260 .unlocked_ioctl = raw_ioctl,
261 .llseek = default_llseek,
261 .owner = THIS_MODULE, 262 .owner = THIS_MODULE,
262}; 263};
263 264
@@ -265,6 +266,7 @@ static const struct file_operations raw_ctl_fops = {
265 .unlocked_ioctl = raw_ctl_ioctl, 266 .unlocked_ioctl = raw_ctl_ioctl,
266 .open = raw_open, 267 .open = raw_open,
267 .owner = THIS_MODULE, 268 .owner = THIS_MODULE,
269 .llseek = noop_llseek,
268}; 270};
269 271
270static struct cdev raw_cdev; 272static struct cdev raw_cdev;