mtd/drivers/mtd/nand nand_base.c,1.107,1.108
dbrown at infradead.org
dbrown at infradead.org
Tue Jun 22 11:04:43 EDT 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv4988
Modified Files:
nand_base.c
Log Message:
Check if we have mtdpart compiled as a module.
Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- nand_base.c 22 Jun 2004 13:13:18 -0000 1.107
+++ nand_base.c 22 Jun 2004 15:04:40 -0000 1.108
@@ -58,7 +58,7 @@
#include <linux/bitops.h>
#include <asm/io.h>
-#ifdef CONFIG_MTD_PARTITIONS
+#if defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
#include <linux/mtd/partitions.h>
#endif
@@ -2546,7 +2546,7 @@
{
struct nand_chip *this = mtd->priv;
-#ifdef CONFIG_MTD_PARTITIONS
+#if defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
/* Unregister partitions */
del_mtd_partitions (mtd);
#endif
More information about the linux-mtd-cvs
mailing list