summaryrefslogtreecommitdiff
path: root/drivers/mtd/mtdcore.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-07-06 08:10:26 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 14:50:22 +0100
commit8bb8b85f6732ed579222a465d0749f66a3cace4d (patch)
tree482c0842f4c3e00976cc3d7165d7c772a2accba6 /drivers/mtd/mtdcore.c
parentf728598f8d8edd6df2b53665ddadaf18401e5b11 (diff)
downloadlinux-next-8bb8b85f6732ed579222a465d0749f66a3cace4d.tar.gz
mtd: m25p80: Fix the Spansion chip detection
Due to the implementation of the following loop at the end of jedec_probe(): 776 for (tmp = 0; tmp < ARRAY_SIZE(m25p_ids) - 1; tmp++) { 777 info = (void *)m25p_ids[tmp].driver_data; 778 if (info->jedec_id == jedec) { 779 if (info->ext_id != 0 && info->ext_id != ext_jedec) 780 continue; 781 return &m25p_ids[tmp]; 782 } 783 } In particular line 779 in the above numbering, the chips with ext_id != 0 must be ordered first in the list of chips (m25p_ids[]). Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/mtdcore.c')
0 files changed, 0 insertions, 0 deletions