From: Mike Frysinger Date: Fri, 23 Jul 2010 08:24:46 +0000 (-0400) Subject: Blackfin: gpio: use common usage func X-Git-Tag: v2010.09-rc1~63 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c8cf4fc40757fa08af835dd886d9f7dacb515683;p=u-boot Blackfin: gpio: use common usage func Signed-off-by: Mike Frysinger --- diff --git a/arch/blackfin/cpu/cmd_gpio.c b/arch/blackfin/cpu/cmd_gpio.c index 9e505b6617..4430c90d4d 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;