diff options
-rw-r--r-- | drivers/gpio/gpiolib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 7f20709035..2503262d65 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -681,7 +681,7 @@ static int do_gpiolib(int argc, char *argv[]) if (argc > 2) return COMMAND_ERROR_USAGE; - if (argc == 1) { + if (argc > 1) { struct device_d *dev; dev = find_device(argv[1]); |