mtd/drivers/mtd/nand diskonchip.c, 1.36, 1.37 edb7312.c, 1.9,
1.10 h1910.c, 1.3, 1.4 nand_bbt.c, 1.25, 1.26 ppchameleonevb.c,
1.3, 1.4 spia.c, 1.22, 1.23 toto.c, 1.3, 1.4 tx4925ndfmc.c,
1.4, 1.5 tx4938ndfmc.c, 1.3, 1.4
gleixner at infradead.org
gleixner at infradead.org
Tue Oct 5 09:50:23 EDT 2004
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv18714
Modified Files:
diskonchip.c edb7312.c h1910.c nand_bbt.c ppchameleonevb.c
spia.c toto.c tx4925ndfmc.c tx4938ndfmc.c
Log Message:
remove type casts
Index: diskonchip.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/diskonchip.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- diskonchip.c 1 Oct 2004 21:46:16 -0000 1.36
+++ diskonchip.c 5 Oct 2004 13:50:19 -0000 1.37
@@ -1106,7 +1106,7 @@
unsigned blocks, maxblocks;
int offs, numheaders;
- buf = (u_char *) kmalloc(mtd->oobblock, GFP_KERNEL);
+ buf = kmalloc(mtd->oobblock, GFP_KERNEL);
if (!buf) {
printk(KERN_ERR "DiskOnChip mediaheader kmalloc failed!\n");
return 0;
@@ -1208,7 +1208,7 @@
if (inftl_bbt_write)
end -= (INFTL_BBT_RESERVED_BLOCKS << this->phys_erase_shift);
- buf = (u_char *) kmalloc(mtd->oobblock, GFP_KERNEL);
+ buf = kmalloc(mtd->oobblock, GFP_KERNEL);
if (!buf) {
printk(KERN_ERR "DiskOnChip mediaheader kmalloc failed!\n");
return 0;
@@ -1625,7 +1625,7 @@
sizeof(struct nand_chip) +
sizeof(struct doc_priv) +
(2 * sizeof(struct nand_bbt_descr));
- mtd = (struct mtd_info *) kmalloc(len, GFP_KERNEL);
+ mtd = kmalloc(len, GFP_KERNEL);
if (!mtd) {
printk(KERN_ERR "DiskOnChip kmalloc (%d bytes) failed!\n", len);
ret = -ENOMEM;
Index: edb7312.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/edb7312.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- edb7312.c 16 Sep 2004 23:27:14 -0000 1.9
+++ edb7312.c 5 Oct 2004 13:50:20 -0000 1.10
@@ -134,7 +134,7 @@
void __iomem * ep7312_fio_base;
/* Allocate memory for MTD device structure and private data */
- ep7312_mtd = (struct mtd_info *) kmalloc(sizeof(struct mtd_info) +
+ ep7312_mtd = kmalloc(sizeof(struct mtd_info) +
sizeof(struct nand_chip),
GFP_KERNEL);
if (!ep7312_mtd) {
Index: h1910.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/h1910.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- h1910.c 16 Sep 2004 23:27:14 -0000 1.3
+++ h1910.c 5 Oct 2004 13:50:20 -0000 1.4
@@ -119,7 +119,7 @@
}
/* Allocate memory for MTD device structure and private data */
- h1910_nand_mtd = (struct mtd_info *) kmalloc(sizeof(struct mtd_info) +
+ h1910_nand_mtd = kmalloc(sizeof(struct mtd_info) +
sizeof(struct nand_chip),
GFP_KERNEL);
if (!h1910_nand_mtd) {
Index: nand_bbt.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/nand_bbt.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- nand_bbt.c 2 Oct 2004 10:08:45 -0000 1.25
+++ nand_bbt.c 5 Oct 2004 13:50:20 -0000 1.26
@@ -797,7 +797,7 @@
len = mtd->size >> (this->bbt_erase_shift + 2);
/* Allocate memory (2bit per block) */
- this->bbt = (uint8_t *) kmalloc (len, GFP_KERNEL);
+ this->bbt = kmalloc (len, GFP_KERNEL);
if (!this->bbt) {
printk (KERN_ERR "nand_scan_bbt: Out of memory\n");
return -ENOMEM;
Index: ppchameleonevb.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/ppchameleonevb.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ppchameleonevb.c 16 Sep 2004 23:27:14 -0000 1.3
+++ ppchameleonevb.c 5 Oct 2004 13:50:20 -0000 1.4
@@ -198,7 +198,7 @@
* Processor module NAND (if any) *
*********************************/
/* Allocate memory for MTD device structure and private data */
- ppchameleon_mtd = (struct mtd_info *) kmalloc(sizeof(struct mtd_info) +
+ ppchameleon_mtd = kmalloc(sizeof(struct mtd_info) +
sizeof(struct nand_chip), GFP_KERNEL);
if (!ppchameleon_mtd) {
printk("Unable to allocate PPChameleon NAND MTD device structure.\n");
@@ -297,7 +297,7 @@
* EVB NAND (always present) *
****************************/
/* Allocate memory for MTD device structure and private data */
- ppchameleonevb_mtd = (struct mtd_info *) kmalloc(sizeof(struct mtd_info) +
+ ppchameleonevb_mtd = kmalloc(sizeof(struct mtd_info) +
sizeof(struct nand_chip), GFP_KERNEL);
if (!ppchameleonevb_mtd) {
printk("Unable to allocate PPChameleonEVB NAND MTD device structure.\n");
Index: spia.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/spia.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- spia.c 16 Sep 2004 23:27:14 -0000 1.22
+++ spia.c 5 Oct 2004 13:50:20 -0000 1.23
@@ -108,7 +108,7 @@
struct nand_chip *this;
/* Allocate memory for MTD device structure and private data */
- spia_mtd = (struct mtd_info *) kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
+ spia_mtd = kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
GFP_KERNEL);
if (!spia_mtd) {
printk ("Unable to allocate SPIA NAND MTD device structure.\n");
Index: toto.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/toto.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- toto.c 16 Sep 2004 23:27:15 -0000 1.3
+++ toto.c 5 Oct 2004 13:50:20 -0000 1.4
@@ -122,7 +122,7 @@
int err = 0;
/* Allocate memory for MTD device structure and private data */
- toto_mtd = (struct mtd_info *) kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
+ toto_mtd = kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
GFP_KERNEL);
if (!toto_mtd) {
printk (KERN_WARNING "Unable to allocate toto NAND MTD device structure.\n");
Index: tx4925ndfmc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/tx4925ndfmc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- tx4925ndfmc.c 16 Sep 2004 23:27:15 -0000 1.4
+++ tx4925ndfmc.c 5 Oct 2004 13:50:20 -0000 1.5
@@ -317,7 +317,7 @@
int err = 0;
/* Allocate memory for MTD device structure and private data */
- tx4925ndfmc_mtd = (struct mtd_info *) kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
+ tx4925ndfmc_mtd = kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
GFP_KERNEL);
if (!tx4925ndfmc_mtd) {
printk ("Unable to allocate RBTX4925 NAND MTD device structure.\n");
Index: tx4938ndfmc.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/tx4938ndfmc.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tx4938ndfmc.c 16 Sep 2004 23:27:15 -0000 1.3
+++ tx4938ndfmc.c 5 Oct 2004 13:50:20 -0000 1.4
@@ -325,7 +325,7 @@
tx4938_ndfmcptr->spr = hold << 4 | spw;
/* Allocate memory for MTD device structure and private data */
- tx4938ndfmc_mtd = (struct mtd_info *) kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
+ tx4938ndfmc_mtd = kmalloc (sizeof(struct mtd_info) + sizeof (struct nand_chip),
GFP_KERNEL);
if (!tx4938ndfmc_mtd) {
printk ("Unable to allocate TX4938 NDFMC MTD device structure.\n");
More information about the linux-mtd-cvs
mailing list