diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-09-20 13:46:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-02 16:00:39 -0400 |
commit | 73b6f4046ba79a313b98aa1132344a1221fc1c4d (patch) | |
tree | 9c4ee02da1c190cceb0cdede1e8bc4f8905433e7 /arch/blackfin | |
parent | 581e97df38dd23bf0b0e3840bbebd0cd730ddfc5 (diff) |
Blackfin: cmd_gpio: return gpio value to caller
Make the GPIO command usable in a scripting environment by returning
the GPIO value rather than always 0.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | 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 5988da79171..3e7ba0a347d 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, |