summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSteven Miao <realmz6@gmail.com>2012-08-16 13:41:47 +0800
committerBob Liu <lliubbo@gmail.com>2012-10-08 14:36:29 +0800
commitce8609146d09df213ed1e842ece7ad477e0ab7a6 (patch)
tree906628b9b7f55197adc5540497ff5f5642d1b080 /arch
parenta54081c45c4070c4ec708f63abb87b8d0944f77a (diff)
Blackfin: bfin_gpio: proc: fix return value
Signed-off-by: Steven Miao <realmz6@gmail.com> Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/blackfin/kernel/bfin_gpio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
index 83139aaf3072..ed978f1c5cb9 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