]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm/omap: use generic_file_llseek in iommu_debug
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Jul 2010 17:16:33 +0000 (19:16 +0200)
committerArnd Bergmann <arnd@arndb.de>
Thu, 16 Sep 2010 08:33:11 +0000 (10:33 +0200)
In future kernels, debugfs files need to specify
the llseek operation explicitly to allow seeking.
This sets the llseek operation in the omap iommu
debugfs files to generic_file_llseek, which is
appropriate for files using simple_read_from_buffer.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
arch/arm/plat-omap/iommu-debug.c

index e6c0d536899cb7a697e8db32e55bfa4301c93e53..f07cf2f08e09479045d3b7e3c8c6b1c0458c59f9 100644 (file)
@@ -328,12 +328,14 @@ static int debug_open_generic(struct inode *inode, struct file *file)
                .open = debug_open_generic,                             \
                .read = debug_read_##name,                              \
                .write = debug_write_##name,                            \
+               .llseek = generic_file_llseek,                          \
        };
 
 #define DEBUG_FOPS_RO(name)                                            \
        static const struct file_operations debug_##name##_fops = {     \
                .open = debug_open_generic,                             \
                .read = debug_read_##name,                              \
+               .llseek = generic_file_llseek,                          \
        };
 
 DEBUG_FOPS_RO(ver);