diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-30 13:26:37 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-04-09 14:13:10 -0400 |
commit | e784788ddb7000dbea8bd2986a3f83c4d77f96ff (patch) | |
tree | b542d12760edac644ae39f0f3c6cef0f49882eff /arch/cris/arch-v32/kernel | |
parent | 96e7d9158f5ae91accb9c81cca14bcd0c996c0cc (diff) |
get rid of a bunch of open-coded create_proc_read_entry()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris/arch-v32/kernel')
-rw-r--r-- | arch/cris/arch-v32/kernel/fasttimer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/cris/arch-v32/kernel/fasttimer.c b/arch/cris/arch-v32/kernel/fasttimer.c index ab1551ee43c5..dd1c998070e9 100644 --- a/arch/cris/arch-v32/kernel/fasttimer.c +++ b/arch/cris/arch-v32/kernel/fasttimer.c | |||
@@ -465,7 +465,6 @@ void schedule_usleep(unsigned long us) | |||
465 | #ifdef CONFIG_PROC_FS | 465 | #ifdef CONFIG_PROC_FS |
466 | static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len | 466 | static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len |
467 | ,int *eof, void *data_unused); | 467 | ,int *eof, void *data_unused); |
468 | static struct proc_dir_entry *fasttimer_proc_entry; | ||
469 | #endif /* CONFIG_PROC_FS */ | 468 | #endif /* CONFIG_PROC_FS */ |
470 | 469 | ||
471 | #ifdef CONFIG_PROC_FS | 470 | #ifdef CONFIG_PROC_FS |
@@ -816,9 +815,7 @@ int fast_timer_init(void) | |||
816 | printk("fast_timer_init()\n"); | 815 | printk("fast_timer_init()\n"); |
817 | 816 | ||
818 | #ifdef CONFIG_PROC_FS | 817 | #ifdef CONFIG_PROC_FS |
819 | fasttimer_proc_entry = create_proc_entry("fasttimer", 0, 0); | 818 | create_proc_read_entry("fasttimer", 0, NULL, proc_fasttimer_read, NULL); |
820 | if (fasttimer_proc_entry) | ||
821 | fasttimer_proc_entry->read_proc = proc_fasttimer_read; | ||
822 | #endif /* PROC_FS */ | 819 | #endif /* PROC_FS */ |
823 | if (request_irq(TIMER0_INTR_VECT, timer_trig_interrupt, | 820 | if (request_irq(TIMER0_INTR_VECT, timer_trig_interrupt, |
824 | IRQF_SHARED | IRQF_DISABLED, | 821 | IRQF_SHARED | IRQF_DISABLED, |