diff options
Diffstat (limited to 'common/cmd_gpio.c')
-rw-r--r-- | common/cmd_gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_gpio.c b/common/cmd_gpio.c index 65d6df451c..bb0f63a592 100644 --- a/common/cmd_gpio.c +++ b/common/cmd_gpio.c @@ -141,7 +141,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #endif if (argc > 0) str_gpio = *argv; - if (!strcmp(str_cmd, "status")) { + if (!strncmp(str_cmd, "status", 1)) { /* Support deprecated gpio_status() */ #ifdef gpio_status gpio_status(); |