mtd/drivers/mtd/chips cfi_cmdset_0002.c,1.92,1.93
David Woodhouse
dwmw2 at infradead.org
Thu Nov 20 03:39:38 EST 2003
- Previous message: mtd/fs/jffs2 compr.c,1.27,1.28 gc.c,1.127,1.128
nodelist.h,1.111,1.112 write.c,1.76,1.77
- Next message: mtd/fs/jffs2/ecos/src os-ecos.h,1.5,1.6 list.h,1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv27961
Modified Files:
cfi_cmdset_0002.c
Log Message:
Fix C99ism.
Index: cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0002.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -r1.92 -r1.93
--- cfi_cmdset_0002.c 22 Oct 2003 18:27:59 -0000 1.92
+++ cfi_cmdset_0002.c 20 Nov 2003 08:39:35 -0000 1.93
@@ -277,6 +277,8 @@
struct cfi_private *cfi = map->fldrv_priv;
struct mtd_info *mtd;
unsigned long devsize = (1<<cfi->cfiq->DevSize) * cfi->interleave;
+ unsigned long offset = 0;
+ int i,j;
mtd = kmalloc(sizeof(*mtd), GFP_KERNEL);
printk(KERN_NOTICE "number of %s chips: %d\n",
@@ -292,9 +294,6 @@
mtd->type = MTD_NORFLASH;
/* Also select the correct geometry setup too */
mtd->size = devsize * cfi->numchips;
-
- unsigned long offset = 0;
- int i,j;
mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips;
mtd->eraseregions = kmalloc(sizeof(struct mtd_erase_region_info)
- Previous message: mtd/fs/jffs2 compr.c,1.27,1.28 gc.c,1.127,1.128
nodelist.h,1.111,1.112 write.c,1.76,1.77
- Next message: mtd/fs/jffs2/ecos/src os-ecos.h,1.5,1.6 list.h,1.1,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list