From: Mike Frysinger Date: Mon, 20 Sep 2010 17:46:29 +0000 (-0400) Subject: Blackfin: cmd_gpio: return gpio value to caller X-Git-Tag: v2010.12-rc1~169^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=73b6f4046ba79a313b98aa1132344a1221fc1c4d;p=u-boot 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 --- diff --git a/arch/blackfin/cpu/cmd_gpio.c b/arch/blackfin/cpu/cmd_gpio.c index 5988da7917..3e7ba0a347 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,