linux/drivers/mtd/chips
David Woodhouse 0f5ae3d2e9 [MTD] Deal correctly with NOR chips which are smaller than the map window
We used to calculate the number of chips to be zero, allocate an array
of that size, then nasty things would happen when we attempt to access
the first object in that zero-sized array.

Now, if the number of _full_ chips that would fit into the map is zero,
we allocate an array of one anyway, and then artificially reduce the
total size of the resulting MTD device to fit in the map.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-05-14 01:40:50 +01:00
..
amd_flash.c Remove use of inter_module_crap in NOR flash chip drivers. 2006-05-08 22:35:05 +01:00
cfi_cmdset_0001.c Remove use of inter_module_crap in NOR flash chip drivers. 2006-05-08 22:35:05 +01:00
cfi_cmdset_0002.c Export cfi_cmdset_0020 and cfi_cmdset_0002 with EXPORT_SYMBOL_GPL 2006-05-08 22:58:25 +01:00
cfi_cmdset_0020.c Export cfi_cmdset_0020 and cfi_cmdset_0002 with EXPORT_SYMBOL_GPL 2006-05-08 22:58:25 +01:00
cfi_probe.c [MTD] Make functions static, include header files with prototypes 2005-11-29 19:54:58 +01:00
cfi_util.c [MTD] chips: Clean up trailing white spaces 2005-11-07 14:45:15 +01:00
chipreg.c [MTD] chips: Clean up trailing white spaces 2005-11-07 14:45:15 +01:00
fwh_lock.h [MTD] chips: Clean up trailing white spaces 2005-11-07 14:45:15 +01:00
gen_probe.c [MTD] Deal correctly with NOR chips which are smaller than the map window 2006-05-14 01:40:50 +01:00
jedec_probe.c [PATCH] Add chip used in collie to jedec_probe 2006-03-31 12:18:49 -08:00
jedec.c [MTD] chips: Clean up trailing white spaces 2005-11-07 14:45:15 +01:00
Kconfig Remove use of inter_module_crap in NOR flash chip drivers. 2006-05-08 22:35:05 +01:00
Makefile Remove use of inter_module_crap in NOR flash chip drivers. 2006-05-08 22:35:05 +01:00
map_absent.c [MTD] chips: Clean up trailing white spaces 2005-11-07 14:45:15 +01:00
map_ram.c Remove unchecked MTD flags 2006-04-17 15:48:17 +01:00
map_rom.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sharp.c [PATCH] drivers/mtd/: small cleanups 2006-03-31 12:18:48 -08:00