diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-11-19 01:32:17 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-11-19 01:32:17 -0500 |
commit | bc7fc5e33e1a093e5f9e196595843bb096471586 (patch) | |
tree | 6916c28ae9582f4257d5ec661a6903427b96571e /drivers/xen | |
parent | e53beacd23d9cb47590da6a7a7f6d417b941a994 (diff) |
xen/evtchn: the evtchn device is non-seekable
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/evtchn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index fec6ba3c08a8..dd8e5e0f1935 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c | |||
@@ -431,7 +431,7 @@ static int evtchn_open(struct inode *inode, struct file *filp) | |||
431 | 431 | ||
432 | filp->private_data = u; | 432 | filp->private_data = u; |
433 | 433 | ||
434 | return 0; | 434 | return nonseekable_open(inode, filp);; |
435 | } | 435 | } |
436 | 436 | ||
437 | static int evtchn_release(struct inode *inode, struct file *filp) | 437 | static int evtchn_release(struct inode *inode, struct file *filp) |
@@ -467,7 +467,7 @@ static const struct file_operations evtchn_fops = { | |||
467 | .fasync = evtchn_fasync, | 467 | .fasync = evtchn_fasync, |
468 | .open = evtchn_open, | 468 | .open = evtchn_open, |
469 | .release = evtchn_release, | 469 | .release = evtchn_release, |
470 | .llseek = noop_llseek, | 470 | .llseek = no_llseek, |
471 | }; | 471 | }; |
472 | 472 | ||
473 | static struct miscdevice evtchn_miscdev = { | 473 | static struct miscdevice evtchn_miscdev = { |