mtd/drivers/mtd/nand diskonchip.c, 1.31, 1.32 nand_base.c, 1.114,
1.115
David Woodhouse
dwmw2 at infradead.org
Mon Aug 9 09:19:48 EDT 2004
- Previous message: mtd/drivers/mtd/devices blkmtd-24.c, 1.21, 1.22 blkmtd.c, 1.21,
1.22 doc2000.c, 1.60, 1.61 doc2001.c, 1.42, 1.43 doc2001plus.c,
1.8, 1.9 lart.c, 1.6, 1.7 mtdram.c, 1.32, 1.33 phram.c, 1.1,
1.2 pmc551.c, 1.27, 1.28 slram.c, 1.30, 1.31
- Next message: mtd/include/linux/mtd mtd.h,1.54,1.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv5601/drivers/mtd/nand
Modified Files:
diskonchip.c nand_base.c
Log Message:
Change alls driver to mtd_erase_callback, make partitions non-modular.
Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- diskonchip.c 9 Aug 2004 07:20:53 -0000 1.31
+++ diskonchip.c 9 Aug 2004 13:19:45 -0000 1.32
@@ -1239,8 +1239,9 @@
if ((ret = nand_scan_bbt(mtd, NULL)))
return ret;
add_mtd_device(mtd);
-#if defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
- if (!no_autopart) add_mtd_partitions(mtd, parts, numparts);
+#ifdef CONFIG_MTD_PARTITIONS
+ if (!no_autopart)
+ add_mtd_partitions(mtd, parts, numparts);
#endif
return 0;
}
@@ -1298,8 +1299,9 @@
autopartitioning, but I want to give it more thought. */
if (!numparts) return -EIO;
add_mtd_device(mtd);
-#if defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
- if (!no_autopart) add_mtd_partitions(mtd, parts, numparts);
+#ifdefined CONFIG_MTD_PARTITIONS
+ if (!no_autopart)
+ add_mtd_partitions(mtd, parts, numparts);
#endif
return 0;
}
Index: nand_base.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_base.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -r1.114 -r1.115
--- nand_base.c 26 Jul 2004 16:07:48 -0000 1.114
+++ nand_base.c 9 Aug 2004 13:19:45 -0000 1.115
@@ -58,7 +58,7 @@
#include <linux/bitops.h>
#include <asm/io.h>
-#if defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
+#ifdef CONFIG_MTD_PARTITIONS
#include <linux/mtd/partitions.h>
#endif
@@ -2108,8 +2108,8 @@
ret = instr->state == MTD_ERASE_DONE ? 0 : -EIO;
/* Do call back function */
- if (!ret && instr->callback)
- instr->callback (instr);
+ if (!ret)
+ mtd_erase_callback(instr);
/* Deselect and wake up anyone waiting on the device */
nand_release_chip(mtd);
@@ -2555,11 +2555,11 @@
{
struct nand_chip *this = mtd->priv;
-#if defined(CONFIG_MTD_PARTITIONS) || defined(CONFIG_MTD_PARTITIONS_MODULE)
- /* Unregister partitions */
+#ifdef CONFIG_MTD_PARTITIONS
+ /* Deregister partitions */
del_mtd_partitions (mtd);
#endif
- /* Unregister the device */
+ /* Deregister the device */
del_mtd_device (mtd);
/* Free bad block table memory, if allocated */
- Previous message: mtd/drivers/mtd/devices blkmtd-24.c, 1.21, 1.22 blkmtd.c, 1.21,
1.22 doc2000.c, 1.60, 1.61 doc2001.c, 1.42, 1.43 doc2001plus.c,
1.8, 1.9 lart.c, 1.6, 1.7 mtdram.c, 1.32, 1.33 phram.c, 1.1,
1.2 pmc551.c, 1.27, 1.28 slram.c, 1.30, 1.31
- Next message: mtd/include/linux/mtd mtd.h,1.54,1.55
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list