[U-Boot] [PATCH 25/37] Blackfin: cmd_gpio: return gpio value to caller
Mike Frysinger
vapier at gentoo.org
Sat Oct 2 22:05:46 CEST 2010
Make the GPIO command usable in a scripting environment by returning
the GPIO value rather than always 0.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
arch/blackfin/cpu/cmd_gpio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/blackfin/cpu/cmd_gpio.c b/arch/blackfin/cpu/cmd_gpio.c
index 5988da7..3e7ba0a 100644
--- a/arch/blackfin/cpu/cmd_gpio.c
+++ b/arch/blackfin/cpu/cmd_gpio.c
@@ -108,7 +108,7 @@ int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
gpio_free(gpio);
- return 0;
+ return value;
}
U_BOOT_CMD(gpio, 3, 0, do_gpio,
--
1.7.3.1
More information about the U-Boot
mailing list