aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/au1000/common/gpio.c
diff options
context:
space:
mode:
authorYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>2007-08-01 23:48:00 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-08-26 21:16:50 -0400
commit7acae224a423a492454d6550ce65c9af556d02c7 (patch)
tree938e8db9e7d61c7dfd96d3bdb8aa6c8f69b28f85 /arch/mips/au1000/common/gpio.c
parentf201b46328ac378bbd0894dd3a0c72bce4c1131e (diff)
[MIPS] Fix au1xxx_gpio_direction_* return value
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/au1000/common/gpio.c')
-rw-r--r--arch/mips/au1000/common/gpio.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/au1000/common/gpio.c b/arch/mips/au1000/common/gpio.c
index 7abe42099439..8527856aec45 100644
--- a/arch/mips/au1000/common/gpio.c
+++ b/arch/mips/au1000/common/gpio.c
@@ -131,12 +131,12 @@ int au1xxx_gpio_direction_input(unsigned gpio)
131{ 131{
132 if (gpio >= AU1XXX_GPIO_BASE) 132 if (gpio >= AU1XXX_GPIO_BASE)
133#if defined(CONFIG_SOC_AU1000) 133#if defined(CONFIG_SOC_AU1000)
134 ; 134 return -ENODEV;
135#else 135#else
136 return au1xxx_gpio2_direction_input(gpio); 136 return au1xxx_gpio2_direction_input(gpio);
137#endif 137#endif
138 else 138
139 return au1xxx_gpio1_direction_input(gpio); 139 return au1xxx_gpio1_direction_input(gpio);
140} 140}
141 141
142EXPORT_SYMBOL(au1xxx_gpio_direction_input); 142EXPORT_SYMBOL(au1xxx_gpio_direction_input);
@@ -145,12 +145,12 @@ int au1xxx_gpio_direction_output(unsigned gpio, int value)
145{ 145{
146 if (gpio >= AU1XXX_GPIO_BASE) 146 if (gpio >= AU1XXX_GPIO_BASE)
147#if defined(CONFIG_SOC_AU1000) 147#if defined(CONFIG_SOC_AU1000)
148 ; 148 return -ENODEV;
149#else 149#else
150 return au1xxx_gpio2_direction_output(gpio, value); 150 return au1xxx_gpio2_direction_output(gpio, value);
151#endif 151#endif
152 else 152
153 return au1xxx_gpio1_direction_output(gpio, value); 153 return au1xxx_gpio1_direction_output(gpio, value);
154} 154}
155 155
156EXPORT_SYMBOL(au1xxx_gpio_direction_output); 156EXPORT_SYMBOL(au1xxx_gpio_direction_output);