[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>
This commit is contained in:
parent
f201b46328
commit
7acae224a4
|
@ -131,11 +131,11 @@ int au1xxx_gpio_direction_input(unsigned gpio)
|
|||
{
|
||||
if (gpio >= AU1XXX_GPIO_BASE)
|
||||
#if defined(CONFIG_SOC_AU1000)
|
||||
;
|
||||
return -ENODEV;
|
||||
#else
|
||||
return au1xxx_gpio2_direction_input(gpio);
|
||||
#endif
|
||||
else
|
||||
|
||||
return au1xxx_gpio1_direction_input(gpio);
|
||||
}
|
||||
|
||||
|
@ -145,11 +145,11 @@ int au1xxx_gpio_direction_output(unsigned gpio, int value)
|
|||
{
|
||||
if (gpio >= AU1XXX_GPIO_BASE)
|
||||
#if defined(CONFIG_SOC_AU1000)
|
||||
;
|
||||
return -ENODEV;
|
||||
#else
|
||||
return au1xxx_gpio2_direction_output(gpio, value);
|
||||
#endif
|
||||
else
|
||||
|
||||
return au1xxx_gpio1_direction_output(gpio, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue