Skip to content

Commit

Permalink
Blackfin: bfin_gpio: proc: fix return value
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
  • Loading branch information
Steven Miao authored and Bob Liu committed Oct 8, 2012
1 parent a54081c commit ce86091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/kernel/bfin_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1265,8 +1265,8 @@ static __init int gpio_register_proc(void)
{
struct proc_dir_entry *proc_gpio;

proc_gpio = proc_create("gpio", S_IRUGO, NULL, &gpio_proc_ops);
return proc_gpio != NULL;
proc_gpio = proc_create("gpio", 0, NULL, &gpio_proc_ops);
return proc_gpio == NULL;
}
__initcall(gpio_register_proc);
#endif
Expand Down

0 comments on commit ce86091

Please sign in to comment.