From: Steven Miao Date: Thu, 16 Aug 2012 05:41:47 +0000 (+0800) Subject: Blackfin: bfin_gpio: proc: fix return value X-Git-Tag: upstream/snapshot3+hdmi~6496^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce8609146d09df213ed1e842ece7ad477e0ab7a6;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Blackfin: bfin_gpio: proc: fix return value Signed-off-by: Steven Miao Signed-off-by: Bob Liu --- 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