mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
get rid of a bunch of open-coded create_proc_read_entry()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
96e7d9158f
commit
e784788ddb
6 changed files with 11 additions and 22 deletions
|
|
@ -491,7 +491,6 @@ void schedule_usleep(unsigned long us)
|
|||
#ifdef CONFIG_PROC_FS
|
||||
static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len
|
||||
,int *eof, void *data_unused);
|
||||
static struct proc_dir_entry *fasttimer_proc_entry;
|
||||
#endif /* CONFIG_PROC_FS */
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
|
|
@ -857,8 +856,7 @@ int fast_timer_init(void)
|
|||
}
|
||||
#endif
|
||||
#ifdef CONFIG_PROC_FS
|
||||
if ((fasttimer_proc_entry = create_proc_entry( "fasttimer", 0, 0 )))
|
||||
fasttimer_proc_entry->read_proc = proc_fasttimer_read;
|
||||
create_proc_read_entry("fasttimer", 0, NULL, proc_fasttimer_read, NULL);
|
||||
#endif /* PROC_FS */
|
||||
if(request_irq(TIMER1_IRQ_NBR, timer1_handler, 0,
|
||||
"fast timer int", NULL))
|
||||
|
|
|
|||
|
|
@ -465,7 +465,6 @@ void schedule_usleep(unsigned long us)
|
|||
#ifdef CONFIG_PROC_FS
|
||||
static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len
|
||||
,int *eof, void *data_unused);
|
||||
static struct proc_dir_entry *fasttimer_proc_entry;
|
||||
#endif /* CONFIG_PROC_FS */
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
|
|
@ -816,9 +815,7 @@ int fast_timer_init(void)
|
|||
printk("fast_timer_init()\n");
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
fasttimer_proc_entry = create_proc_entry("fasttimer", 0, 0);
|
||||
if (fasttimer_proc_entry)
|
||||
fasttimer_proc_entry->read_proc = proc_fasttimer_read;
|
||||
create_proc_read_entry("fasttimer", 0, NULL, proc_fasttimer_read, NULL);
|
||||
#endif /* PROC_FS */
|
||||
if (request_irq(TIMER0_INTR_VECT, timer_trig_interrupt,
|
||||
IRQF_SHARED | IRQF_DISABLED,
|
||||
|
|
|
|||
Loading…
Reference in a new issue