Blackfin: bfin_gpio: proc: fix return value
authorSteven Miao <realmz6@gmail.com>
Thu, 16 Aug 2012 05:41:47 +0000 (13:41 +0800)
committerBob Liu <lliubbo@gmail.com>
Mon, 8 Oct 2012 06:36:29 +0000 (14:36 +0800)
Signed-off-by: Steven Miao <realmz6@gmail.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
arch/blackfin/kernel/bfin_gpio.c

index 83139aaf3072b21c3faafb9c1b69bade1cdf3ccf..ed978f1c5cb9970933c102300722ae8051774d7e 100644 (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