summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/cmd_gpio.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-23 04:24:46 -0400
committerMike Frysinger <vapier@gentoo.org>2010-07-29 13:29:52 -0400
commitc8cf4fc40757fa08af835dd886d9f7dacb515683 (patch)
treec1cb66f20cae87974609682cafa4becd98ed9af4 /arch/blackfin/cpu/cmd_gpio.c
parentb990c7bda4d8f4501b3383be9ed44327de24f36f (diff)
downloadu-boot-imx-c8cf4fc40757fa08af835dd886d9f7dacb515683.zip
u-boot-imx-c8cf4fc40757fa08af835dd886d9f7dacb515683.tar.gz
u-boot-imx-c8cf4fc40757fa08af835dd886d9f7dacb515683.tar.bz2
Blackfin: gpio: use common usage func
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/cpu/cmd_gpio.c')
-rw-r--r--arch/blackfin/cpu/cmd_gpio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/blackfin/cpu/cmd_gpio.c b/arch/blackfin/cpu/cmd_gpio.c
index 9e505b6..4430c90 100644
--- a/arch/blackfin/cpu/cmd_gpio.c
+++ b/arch/blackfin/cpu/cmd_gpio.c
@@ -26,11 +26,9 @@ int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 0;
}
- if (argc != 3) {
+ if (argc != 3)
show_usage:
- printf("Usage:\n%s\n", cmdtp->usage);
- return 1;
- }
+ return cmd_usage(cmdtp);
/* parse the behavior */
ulong sub_cmd;