summaryrefslogtreecommitdiff
path: root/drivers/power/power_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/power_core.c')
-rw-r--r--drivers/power/power_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c
index 29ccc83..fe1f316 100644
--- a/drivers/power/power_core.c
+++ b/drivers/power/power_core.c
@@ -140,6 +140,9 @@ int do_pmic(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return CMD_RET_SUCCESS;
}
+ if (argc < 3)
+ return CMD_RET_USAGE;
+
name = argv[1];
cmd = argv[2];