number mtd partitions on 16 limits?

Timo Lindhorst lindhors at vnet.ibm.com
Mon Nov 13 11:17:03 EST 2006


I'm sorry, I forgot to check my mail client first.
I have tested this one, so it should work.

Kind regards,
Timo

[PATCH] [MTD] increase MAX_MTD_DEVICES in mtd.h

Increas MAX_MTD_DEVICES from 16 to 64.

Signed-off-by: Timo Lindhost <lindhors at linux.vnet.ibm.com>
---
 include/linux/mtd/mtd.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- ubi-2.6.orig/include/linux/mtd/mtd.h
+++ ubi-2.6/include/linux/mtd/mtd.h
@@ -23,7 +23,7 @@
 
 #define MTD_CHAR_MAJOR 90
 #define MTD_BLOCK_MAJOR 31
-#define MAX_MTD_DEVICES 16
+#define MAX_MTD_DEVICES 64
 
 #define MTD_ERASE_PENDING      	0x01
 #define MTD_ERASING		0x02





More information about the linux-mtd mailing list