diff options
author | Stefano Babic | 2014-03-05 12:51:26 +0100 |
---|---|---|
committer | Stefano Babic | 2014-03-05 12:51:26 +0100 |
commit | 1ad6364eeb4f578e423081d1748e8a3fdf1ab01d (patch) | |
tree | f55731737edf1cfd653b21f2ff9d387e6c53ae24 /drivers/power/power_core.c | |
parent | 335143c76612a0ae26eef8abeda77641d4f63b50 (diff) | |
parent | cc07294bc704694ae33db75b25ac557e5917a83f (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-arm
Diffstat (limited to 'drivers/power/power_core.c')
-rw-r--r-- | drivers/power/power_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c index 29ccc831af2..fe1f3160218 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]; |