Title: [3955] trunk/drivers/mtd/devices/m25p80.c: Fix bug[#3720]
Set the flash command buffer size to 5 when use fast read
- Revision
- 3955
- Author
- sonicz
- Date
- 2007-11-29 00:06:46 -0600 (Thu, 29 Nov 2007)
Log Message
Fix bug[#3720] Set the flash command buffer size to 5 when use fast read
This is only a local fix. Don't submit to LKML. The m25p80 code in
mainline kernel changed after 2.6.23.
Diffstat
m25p80.c | 4 ++++
1 files changed, 4 insertions(+)
Modified Paths
Diff
Modified: trunk/drivers/mtd/devices/m25p80.c (3954 => 3955)
--- trunk/drivers/mtd/devices/m25p80.c 2007-11-29 05:04:05 UTC (rev 3954)
+++ trunk/drivers/mtd/devices/m25p80.c 2007-11-29 06:06:46 UTC (rev 3955)
@@ -76,7 +76,11 @@
struct semaphore lock;
struct mtd_info mtd;
unsigned partitioned;
+#ifdef CONFIG_M25PXX_USE_FAST_READ
+ u8 command[5];
+#else
u8 command[4];
+#endif
};
static inline struct m25p *mtd_to_m25p(struct mtd_info *mtd)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits