Explorar o código

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>
Mike Frysinger %!s(int64=14) %!d(string=hai) anos
pai
achega
73b6f4046b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/blackfin/cpu/cmd_gpio.c

+ 1 - 1
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,