Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[muen/linux.git] / kernel / time / timer_list.c
index ddc1d58f96c7b3c29a7648454512f1a86db66d58..d647dabdac97a3b592b25cdc929909df92b04b8a 100644 (file)
@@ -370,24 +370,12 @@ static const struct seq_operations timer_list_sops = {
        .show = timer_list_show,
 };
 
-static int timer_list_open(struct inode *inode, struct file *filp)
-{
-       return seq_open_private(filp, &timer_list_sops,
-                       sizeof(struct timer_list_iter));
-}
-
-static const struct file_operations timer_list_fops = {
-       .open           = timer_list_open,
-       .read           = seq_read,
-       .llseek         = seq_lseek,
-       .release        = seq_release_private,
-};
-
 static int __init init_timer_list_procfs(void)
 {
        struct proc_dir_entry *pe;
 
-       pe = proc_create("timer_list", 0400, NULL, &timer_list_fops);
+       pe = proc_create_seq_private("timer_list", 0400, NULL, &timer_list_sops,
+                       sizeof(struct timer_list_iter), NULL);
        if (!pe)
                return -ENOMEM;
        return 0;