]> git.karo-electronics.de Git - linux-beck.git/commit
mtd: m25p80: Convert to device table matching
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Mon, 12 Oct 2009 16:24:35 +0000 (20:24 +0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 30 Nov 2009 11:26:08 +0000 (11:26 +0000)
commitb34bc037b26e621e5fc13466767e4da110a7b3d3
treed76ff3b4377ef8d028f1b8a1ec5f30ca78fbda9a
parent4c2b8a62bb0e35f2db0f713b4101b265be7fa985
mtd: m25p80: Convert to device table matching

This patch converts the m25p80 driver so that now it uses .id_table
for device matching, making it properly detect devices on OpenFirmware
platforms (prior to this patch the driver misdetected non-JEDEC chips,
seeing all chips as "m25p80").

Also, now jedec_probe() only does jedec probing, nothing else. If it
is not able to detect a chip, NULL is returned and the driver fall
backs to the information specified by the platform (platform_data, or
exact ID).

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c