mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 17:30:35 +01:00
mtd: nand: comparing with dev_id instead of id
Change-Id: Iefae4b3e3cb9da8effbb4f03877e9f9f2e381f43 Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
This commit is contained in:
parent
f3af149d5f
commit
afd4597fec
1 changed files with 1 additions and 1 deletions
|
|
@ -1520,7 +1520,7 @@ static const struct nand_flash_dev *flash_get_dev(uint8_t dev_id)
|
|||
int i;
|
||||
|
||||
for (i = 0; nand_flash_ids[i].id; i++) {
|
||||
if (nand_flash_ids[i].id == dev_id)
|
||||
if (nand_flash_ids[i].dev_id == dev_id)
|
||||
return &nand_flash_ids[i];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue