]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arch/tile: mark "hardwall" device as non-seekable
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 1 Nov 2010 16:46:10 +0000 (12:46 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 1 Nov 2010 19:31:42 +0000 (15:31 -0400)
Arnd's recent patch series tagged this device with noop_llseek,
conservatively.  In fact, it should be no_llseek, which we arrange
for by opening the device with nonseekable_open().

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/hardwall.c

index 70b829a15ae5a01398fe1d0f1608ccada7544b2b..e910530436e64a4079ba65e22bdca13e6ad01bfa 100644 (file)
@@ -768,13 +768,13 @@ static int hardwall_release(struct inode *inode, struct file *file)
 }
 
 static const struct file_operations dev_hardwall_fops = {
+       .open           = nonseekable_open,
        .unlocked_ioctl = hardwall_ioctl,
 #ifdef CONFIG_COMPAT
        .compat_ioctl   = hardwall_compat_ioctl,
 #endif
        .flush          = hardwall_flush,
        .release        = hardwall_release,
-       .llseek         = noop_llseek,
 };
 
 static struct cdev hardwall_dev;