diff options
-rw-r--r-- | arch/arm/kernel/swp_emulate.c | 5 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/fasttimer.c | 4 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/fasttimer.c | 5 | ||||
-rw-r--r-- | arch/h8300/kernel/gpio.c | 5 | ||||
-rw-r--r-- | drivers/char/ds1620.c | 7 | ||||
-rw-r--r-- | drivers/staging/comedi/proc.c | 7 |
6 files changed, 11 insertions, 22 deletions
diff --git a/arch/arm/kernel/swp_emulate.c b/arch/arm/kernel/swp_emulate.c index ab1017bd1667..0bba47ada5bd 100644 --- a/arch/arm/kernel/swp_emulate.c +++ b/arch/arm/kernel/swp_emulate.c | |||
@@ -268,12 +268,11 @@ static int __init swp_emulation_init(void) | |||
268 | #ifdef CONFIG_PROC_FS | 268 | #ifdef CONFIG_PROC_FS |
269 | struct proc_dir_entry *res; | 269 | struct proc_dir_entry *res; |
270 | 270 | ||
271 | res = create_proc_entry("cpu/swp_emulation", S_IRUGO, NULL); | 271 | res = create_proc_read_entry("cpu/swp_emulation", S_IRUGO, NULL, |
272 | proc_read_status, NULL); | ||
272 | 273 | ||
273 | if (!res) | 274 | if (!res) |
274 | return -ENOMEM; | 275 | return -ENOMEM; |
275 | |||
276 | res->read_proc = proc_read_status; | ||
277 | #endif /* CONFIG_PROC_FS */ | 276 | #endif /* CONFIG_PROC_FS */ |
278 | 277 | ||
279 | printk(KERN_NOTICE "Registering SWP/SWPB emulation handler\n"); | 278 | printk(KERN_NOTICE "Registering SWP/SWPB emulation handler\n"); |
diff --git a/arch/cris/arch-v10/kernel/fasttimer.c b/arch/cris/arch-v10/kernel/fasttimer.c index 082f1890bacb..52bb9b5531e1 100644 --- a/arch/cris/arch-v10/kernel/fasttimer.c +++ b/arch/cris/arch-v10/kernel/fasttimer.c | |||
@@ -491,7 +491,6 @@ void schedule_usleep(unsigned long us) | |||
491 | #ifdef CONFIG_PROC_FS | 491 | #ifdef CONFIG_PROC_FS |
492 | static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len | 492 | static int proc_fasttimer_read(char *buf, char **start, off_t offset, int len |
493 | ,int *eof, void *data_unused); | 493 | ,int *eof, void *data_unused); |
494 | static struct proc_dir_entry *fasttimer_proc_entry; | ||
495 | #endif /* CONFIG_PROC_FS */ | 494 | #endif /* CONFIG_PROC_FS */ |
496 | 495 | ||
497 | #ifdef CONFIG_PROC_FS | 496 | #ifdef CONFIG_PROC_FS |
@@ -857,8 +856,7 @@ int fast_timer_init(void) | |||
857 | } | 856 | } |
858 | #endif | 857 | #endif |
859 | #ifdef CONFIG_PROC_FS | 858 | #ifdef CONFIG_PROC_FS |
860 | if ((fasttimer_proc_entry = create_proc_entry( "fasttimer", 0, 0 ))) | 859 | create_proc_read_entry("fasttimer", 0, NULL, proc_fasttimer_read, NULL); |
861 | fasttimer_proc_entry->read_proc = proc_fasttimer_read; | ||
862 | #endif /* PROC_FS */ | 860 | #endif /* PROC_FS */ |
863 | if(request_irq(TIMER1_IRQ_NBR, timer1_handler, 0, | 861 | if(request_irq(TIMER1_IRQ_NBR, timer1_handler, 0, |
864 | "fast timer int", NULL)) | 862 | "fast timer int", NULL)) |
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, |
diff --git a/arch/h8300/kernel/gpio.c b/arch/h8300/kernel/gpio.c index 6a25dd5530e7..f8a4f5b52697 100644 --- a/arch/h8300/kernel/gpio.c +++ b/arch/h8300/kernel/gpio.c | |||
@@ -158,9 +158,8 @@ static __init int register_proc(void) | |||
158 | { | 158 | { |
159 | struct proc_dir_entry *proc_gpio; | 159 | struct proc_dir_entry *proc_gpio; |
160 | 160 | ||
161 | proc_gpio = create_proc_entry("gpio", S_IRUGO, NULL); | 161 | proc_gpio = create_proc_read_entry("gpio", S_IRUGO, NULL, |
162 | if (proc_gpio) | 162 | gpio_proc_read, NULL); |
163 | proc_gpio->read_proc = gpio_proc_read; | ||
164 | return proc_gpio != NULL; | 163 | return proc_gpio != NULL; |
165 | } | 164 | } |
166 | 165 | ||
diff --git a/drivers/char/ds1620.c b/drivers/char/ds1620.c index 24ffd8cec51e..b599fae698df 100644 --- a/drivers/char/ds1620.c +++ b/drivers/char/ds1620.c | |||
@@ -397,10 +397,9 @@ static int __init ds1620_init(void) | |||
397 | return ret; | 397 | return ret; |
398 | 398 | ||
399 | #ifdef THERM_USE_PROC | 399 | #ifdef THERM_USE_PROC |
400 | proc_therm_ds1620 = create_proc_entry("therm", 0, NULL); | 400 | proc_therm_ds1620 = create_proc_read_entry("therm", 0, NULL, |
401 | if (proc_therm_ds1620) | 401 | proc_therm_ds1620_read, NULL); |
402 | proc_therm_ds1620->read_proc = proc_therm_ds1620_read; | 402 | if (!proc_therm_ds1620) |
403 | else | ||
404 | printk(KERN_ERR "therm: unable to register /proc/therm\n"); | 403 | printk(KERN_ERR "therm: unable to register /proc/therm\n"); |
405 | #endif | 404 | #endif |
406 | 405 | ||
diff --git a/drivers/staging/comedi/proc.c b/drivers/staging/comedi/proc.c index 362c214bcc0b..f01e0cccac3b 100644 --- a/drivers/staging/comedi/proc.c +++ b/drivers/staging/comedi/proc.c | |||
@@ -80,11 +80,8 @@ static int comedi_read(char *buf, char **start, off_t offset, int len, | |||
80 | 80 | ||
81 | void comedi_proc_init(void) | 81 | void comedi_proc_init(void) |
82 | { | 82 | { |
83 | struct proc_dir_entry *comedi_proc; | 83 | create_proc_read_entry("comedi", S_IFREG | S_IRUGO, NULL, |
84 | 84 | comedi_read, NULL); | |
85 | comedi_proc = create_proc_entry("comedi", S_IFREG | S_IRUGO, NULL); | ||
86 | if (comedi_proc) | ||
87 | comedi_proc->read_proc = comedi_read; | ||
88 | } | 85 | } |
89 | 86 | ||
90 | void comedi_proc_cleanup(void) | 87 | void comedi_proc_cleanup(void) |