summaryrefslogtreecommitdiff
path: root/fs/proc/nommu.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2018-06-01 11:55:38 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2018-06-01 11:55:38 +1000
commit7021751b267720b663930f8cf0ee3788ec461c2e (patch)
tree577fe567a7bee74aaa3ccde5ebaa4c5439109220 /fs/proc/nommu.c
parentfd1008e9e457ca24486c1c2ed7798140277d2ad2 (diff)
parentd888ee6a7e8ca577c77541f7f7c9b772554078d4 (diff)
Merge remote-tracking branch 'vfs/for-next'
Diffstat (limited to 'fs/proc/nommu.c')
-rw-r--r--fs/proc/nommu.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/proc/nommu.c b/fs/proc/nommu.c
index 75634379f82e..3b63be64e436 100644
--- a/fs/proc/nommu.c
+++ b/fs/proc/nommu.c
@@ -113,21 +113,9 @@ static const struct seq_operations proc_nommu_region_list_seqop = {
.show = nommu_region_list_show
};
-static int proc_nommu_region_list_open(struct inode *inode, struct file *file)
-{
- return seq_open(file, &proc_nommu_region_list_seqop);
-}
-
-static const struct file_operations proc_nommu_region_list_operations = {
- .open = proc_nommu_region_list_open,
- .read = seq_read,
- .llseek = seq_lseek,
- .release = seq_release,
-};
-
static int __init proc_nommu_init(void)
{
- proc_create("maps", S_IRUGO, NULL, &proc_nommu_region_list_operations);
+ proc_create_seq("maps", S_IRUGO, NULL, &proc_nommu_region_list_seqop);
return 0;
}