author: Christoph Hellwig <hch@lst.de> 2018-04-13 19:44:18 +0200
committer: Christoph Hellwig <hch@lst.de> 2018-05-16 07:23:35 +0200
commit: fddda2b7b521185f3aa018f9559eb33b0aee53a9
parent: 7aed53d1dfd14d468e065212ce45068e2b50c1fa
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 12 deletions
diff --git a/fs/proc/interrupts.c b/fs/proc/interrupts.c
index 6a6bee9c603c..cb0edc7cbf09 100644
--- a/fs/proc/interrupts.c
+++ b/fs/proc/interrupts.c
@@ -34,21 +34,9 @@ static const struct seq_operations int_seq_ops = {
.show = show_interrupts
};
-static int interrupts_open(struct inode *inode, struct file *filp)
-{
- return seq_open(filp, &int_seq_ops);
-}
-
-static const struct file_operations proc_interrupts_operations = {
- .open = interrupts_open,
- .read = seq_read,
- .llseek = seq_lseek,
- .release = seq_release,
-};
-
static int __init proc_interrupts_init(void)
{
- proc_create("interrupts", 0, NULL, &proc_interrupts_operations);
+ proc_create_seq("interrupts", 0, NULL, &int_seq_ops);
return 0;
}
fs_initcall(proc_interrupts_init);