diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-07-06 19:16:33 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2010-09-16 10:33:11 +0200 |
commit | c0b0aca0e0e8c479c43c1e126cddc5fc82b2803a (patch) | |
tree | 8eda714bc35740c57ee0da5382c27efe3e02854b | |
parent | 05271ec424d526968d75b4dd9860f8078bcff0a6 (diff) | |
download | linux-3.10-c0b0aca0e0e8c479c43c1e126cddc5fc82b2803a.tar.gz linux-3.10-c0b0aca0e0e8c479c43c1e126cddc5fc82b2803a.tar.bz2 linux-3.10-c0b0aca0e0e8c479c43c1e126cddc5fc82b2803a.zip |
arm/omap: use generic_file_llseek in iommu_debug
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
-rw-r--r-- | arch/arm/plat-omap/iommu-debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/iommu-debug.c b/arch/arm/plat-omap/iommu-debug.c index e6c0d536899..f07cf2f08e0 100644 --- a/arch/arm/plat-omap/iommu-debug.c +++ b/arch/arm/plat-omap/iommu-debug.c @@ -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); |