Commit 7acae224 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle

[MIPS] Fix au1xxx_gpio_direction_* return value

Signed-off-by: default avatarYoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent f201b463
...@@ -131,11 +131,11 @@ int au1xxx_gpio_direction_input(unsigned gpio) ...@@ -131,11 +131,11 @@ int au1xxx_gpio_direction_input(unsigned gpio)
{ {
if (gpio >= AU1XXX_GPIO_BASE) if (gpio >= AU1XXX_GPIO_BASE)
#if defined(CONFIG_SOC_AU1000) #if defined(CONFIG_SOC_AU1000)
; return -ENODEV;
#else #else
return au1xxx_gpio2_direction_input(gpio); return au1xxx_gpio2_direction_input(gpio);
#endif #endif
else
return au1xxx_gpio1_direction_input(gpio); return au1xxx_gpio1_direction_input(gpio);
} }
...@@ -145,11 +145,11 @@ int au1xxx_gpio_direction_output(unsigned gpio, int value) ...@@ -145,11 +145,11 @@ int au1xxx_gpio_direction_output(unsigned gpio, int value)
{ {
if (gpio >= AU1XXX_GPIO_BASE) if (gpio >= AU1XXX_GPIO_BASE)
#if defined(CONFIG_SOC_AU1000) #if defined(CONFIG_SOC_AU1000)
; return -ENODEV;
#else #else
return au1xxx_gpio2_direction_output(gpio, value); return au1xxx_gpio2_direction_output(gpio, value);
#endif #endif
else
return au1xxx_gpio1_direction_output(gpio, value); return au1xxx_gpio1_direction_output(gpio, value);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment