From: Arnd Bergmann Date: Tue, 6 Jul 2010 21:11:07 +0000 (+0200) Subject: viotape: use noop_llseek X-Git-Tag: upstream/snapshot3+hdmi~12715^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aadbd4360911d7166dc04c5a4e5520b2c7914c73;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git viotape: use noop_llseek Some applications try to seek on tape devices and fail if they return an error. Since we want to change the default llseek action to no_llseek, viotape needs to be changed to use noop_llseek explicitly. Signed-off-by: Arnd Bergmann --- diff --git a/drivers/char/viotape.c b/drivers/char/viotape.c index 42f7fa4..442c3f5 100644 --- a/drivers/char/viotape.c +++ b/drivers/char/viotape.c @@ -804,6 +804,7 @@ const struct file_operations viotap_fops = { .unlocked_ioctl = viotap_unlocked_ioctl, .open = viotap_open, .release = viotap_release, + .llseek = noop_llseek, }; /* Handle interrupt events for tape */