Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332776
b: refs/heads/master
c: 4aef9b7
h: refs/heads/master
v: v3
  • Loading branch information
Brian Norris authored and David Woodhouse committed Sep 29, 2012
1 parent 9de869b commit 3ce59a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 47450b35915c45309974c74f11c2d236db1b950f
refs/heads/master: 4aef9b78de057349ad9d620851b14800af0b962c
10 changes: 2 additions & 8 deletions trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2942,7 +2942,8 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,

chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1);

for (i = 0; i < 2; i++)
/* Read entire ID string */
for (i = 0; i < 8; i++)
id_data[i] = chip->read_byte(mtd);

if (id_data[0] != *maf_id || id_data[1] != *dev_id) {
Expand All @@ -2966,13 +2967,6 @@ static struct nand_flash_dev *nand_get_flash_type(struct mtd_info *mtd,
goto ident_done;
}

chip->cmdfunc(mtd, NAND_CMD_READID, 0x00, -1);

/* Read entire ID string */

for (i = 0; i < 8; i++)
id_data[i] = chip->read_byte(mtd);

if (!type->name)
return ERR_PTR(-ENODEV);

Expand Down

0 comments on commit 3ce59a8

Please sign in to comment.