[patch] docmilplus.c, fix compilation error

Raphael Zimmerer killekulla at rdrz.de
Thu Apr 7 07:39:09 EDT 2005


When CONFIG_MTD_PARTITIONS is defined, docmilplus.c doesn't compile.

Index: mtd/drivers/mtd/nand/diskonchip.c
===================================================================
--- mtd.orig/drivers/mtd/nand/diskonchip.c	2005-04-06 09:48:10.622501508 +0200
+++ mtd/drivers/mtd/nand/diskonchip.c	2005-04-06 10:26:59.702684218 +0200
@@ -109,10 +109,10 @@
 #ifdef CONFIG_MTD_PARTITIONS
 static int no_autopart=0;
 module_param(no_autopart, int, 0);
+#endif
 
 static int show_firmware_partition=0;
 module_param(show_firmware_partition, int, 0);
-#endif
 
 #ifdef MTD_NAND_DISKONCHIP_BBTWRITE
 static int inftl_bbt_write=1;

--




More information about the linux-mtd mailing list