diff options
author | Steven Miao <realmz6@gmail.com> | 2012-08-16 05:41:47 (GMT) |
---|---|---|
committer | Bob Liu <lliubbo@gmail.com> | 2012-10-08 06:36:29 (GMT) |
commit | ce8609146d09df213ed1e842ece7ad477e0ab7a6 (patch) | |
tree | 906628b9b7f55197adc5540497ff5f5642d1b080 | |
parent | a54081c45c4070c4ec708f63abb87b8d0944f77a (diff) | |
download | linux-ce8609146d09df213ed1e842ece7ad477e0ab7a6.tar.xz |
Blackfin: bfin_gpio: proc: fix return value
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index 83139aa..ed978f1 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c @@ -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 |