Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7acae224a423a492454d6550ce65c9af556d02c7
Commit:     7acae224a423a492454d6550ce65c9af556d02c7
Parent:     f201b46328ac378bbd0894dd3a0c72bce4c1131e
Author:     Yoichi Yuasa <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 2 12:48:00 2007 +0900
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Mon Aug 27 02:16:50 2007 +0100

    [MIPS] Fix au1xxx_gpio_direction_* return value
    
    Signed-off-by: Yoichi Yuasa <[EMAIL PROTECTED]>
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 arch/mips/au1000/common/gpio.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/mips/au1000/common/gpio.c b/arch/mips/au1000/common/gpio.c
index 7abe420..8527856 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)
 {
        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);
+
+       return au1xxx_gpio1_direction_input(gpio);
 }
 
 EXPORT_SYMBOL(au1xxx_gpio_direction_input);
@@ -145,12 +145,12 @@ 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);
+
+       return au1xxx_gpio1_direction_output(gpio, value);
 }
 
 EXPORT_SYMBOL(au1xxx_gpio_direction_output);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to