llseek: automatically add .llseek fop
[deliverable/linux.git] / drivers / media / IR / lirc_dev.c
index 899891bec352a3f20fd00975e8cadfacce4da9c7..0acf6396e068212d14bb36d240f62304d9087565 100644 (file)
@@ -163,6 +163,7 @@ static struct file_operations fops = {
        .unlocked_ioctl = lirc_dev_fop_ioctl,
        .open           = lirc_dev_fop_open,
        .release        = lirc_dev_fop_close,
+       .llseek         = noop_llseek,
 };
 
 static int lirc_cdev_add(struct irctl *ir)
@@ -460,6 +461,8 @@ error:
 
        mutex_unlock(&lirc_dev_lock);
 
+       nonseekable_open(inode, file);
+
        return retval;
 }
 EXPORT_SYMBOL(lirc_dev_fop_open);
This page took 0.025458 seconds and 5 git commands to generate.