diff options
author | Scott Wood <scottwood@freescale.com> | 2010-10-13 11:04:30 -0500 |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2010-10-18 14:54:08 -0500 |
commit | 16e00992d818cd20a17de97dffccc4fee500fcc0 (patch) | |
tree | d207c1776bc1d424ebfb2500965095d695ea69b7 /common/cmd_nand.c | |
parent | cacc342d5aa311673efdc05770cb53246dd41c9f (diff) | |
download | u-boot-imx-16e00992d818cd20a17de97dffccc4fee500fcc0.zip u-boot-imx-16e00992d818cd20a17de97dffccc4fee500fcc0.tar.gz u-boot-imx-16e00992d818cd20a17de97dffccc4fee500fcc0.tar.bz2 |
Fix warning in nand unlock command
Commit ea533c260a801c4e51f92f75165cebe6d7b01e35 changed
arg_off_size to take a pointer to a device index, rather than
to the device itself. When updating callers, the nand unlock
code was missed.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r-- | common/cmd_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index 8a81237..634d036 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -653,7 +653,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) } if (strcmp(cmd, "unlock") == 0) { - if (arg_off_size(argc - 2, argv + 2, nand, &off, &size) < 0) + if (arg_off_size(argc - 2, argv + 2, &dev, &off, &size) < 0) return 1; if (!nand_unlock(&nand_info[dev], off, size)) { |