Blackfin: bfin_gpio: proc: fix return value

Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
This commit is contained in:
Steven Miao 2012-08-16 13:41:47 +08:00 committed by Bob Liu
parent a54081c45c
commit ce8609146d
1 changed files with 2 additions and 2 deletions

View File

@ -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