llseek: automatically add .llseek fop
[linux-flexiantxendom0-3.2.10.git] / fs / char_dev.c
index f80a4f2..e4a3318 100644 (file)
@@ -454,6 +454,7 @@ static void cdev_purge(struct cdev *cdev)
  */
 const struct file_operations def_chr_fops = {
        .open = chrdev_open,
+       .llseek = noop_llseek,
 };
 
 static struct kobject *exact_match(dev_t dev, int *part, void *data)