]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/IR/lirc_dev.c
Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[net-next-2.6.git] / drivers / media / IR / lirc_dev.c
index 3ef15625fa8423972bf488a6e63e2abf15bf623f..8418b14ee4d2244ee3b6528549d0d22f35c85159 100644 (file)
@@ -27,7 +27,6 @@
 #include <linux/fs.h>
 #include <linux/poll.h>
 #include <linux/completion.h>
-#include <linux/errno.h>
 #include <linux/mutex.h>
 #include <linux/wait.h>
 #include <linux/unistd.h>
@@ -163,6 +162,7 @@ static struct file_operations lirc_dev_fops = {
 #endif
        .open           = lirc_dev_fop_open,
        .release        = lirc_dev_fop_close,
+       .llseek         = noop_llseek,
 };
 
 static int lirc_cdev_add(struct irctl *ir)
@@ -473,6 +473,8 @@ error:
 
        mutex_unlock(&lirc_dev_lock);
 
+       nonseekable_open(inode, file);
+
        return retval;
 }
 EXPORT_SYMBOL(lirc_dev_fop_open);