xen/evtchn: the evtchn device is non-seekable
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 19 Nov 2010 06:32:17 +0000 (22:32 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 19 Nov 2010 06:32:17 +0000 (22:32 -0800)
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/evtchn.c

index fec6ba3c08a8e885d663ce3ac9c8b031ff971273..dd8e5e0f19352a56f2d645cbf8941fc620f26207 100644 (file)
@@ -431,7 +431,7 @@ static int evtchn_open(struct inode *inode, struct file *filp)
 
        filp->private_data = u;
 
-       return 0;
+       return nonseekable_open(inode, filp);;
 }
 
 static int evtchn_release(struct inode *inode, struct file *filp)
@@ -467,7 +467,7 @@ static const struct file_operations evtchn_fops = {
        .fasync  = evtchn_fasync,
        .open    = evtchn_open,
        .release = evtchn_release,
-       .llseek = noop_llseek,
+       .llseek  = no_llseek,
 };
 
 static struct miscdevice evtchn_miscdev = {