mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-24 20:54:24 +08:00
Fix warning in nand unlock command
Commit ea533c260a
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>
This commit is contained in:
parent
cacc342d5a
commit
16e00992d8
@ -653,7 +653,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(cmd, "unlock") == 0) {
|
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;
|
return 1;
|
||||||
|
|
||||||
if (!nand_unlock(&nand_info[dev], off, size)) {
|
if (!nand_unlock(&nand_info[dev], off, size)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user