mtd/drivers/mtd/nand au1550nd.c,1.14,1.15
David Woodhouse
dwmw2 at infradead.org
Wed Mar 29 03:31:15 EST 2006
- Previous message: mtd/drivers/mtd/maps alchemy-flash.c, 1.2, 1.3 cfi_flagadm.c, 1.15,
1.16 dbox2-flash.c, 1.14, 1.15 dilnetpc.c, 1.20, 1.21 dmv182.c,
1.6, 1.7 h720x-flash.c, 1.12, 1.13 netsc520.c, 1.14,
1.15 nettel.c, 1.12, 1.13 ocotea.c, 1.4, 1.5 pcmciamtd.c, 1.58,
1.59 redwood.c, 1.11, 1.12 sbc8240.c, 1.5, 1.6 sc520cdp.c,
1.23, 1.24 scx200_docflash.c, 1.12, 1.13 sharpsl-flash.c, 1.7,
1.8 ts5500_flash.c, 1.6, 1.7 uclinux.c, 1.12, 1.13
- Next message: mtd/drivers/mtd/chips amd_flash.c, 1.28, 1.29 jedec_probe.c, 1.66,
1.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv3863/drivers/mtd/nand
Modified Files:
au1550nd.c
Log Message:
From: Tobias Klauser <tklauser at nuerscht.ch>
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove
duplicates of the macro.
Signed-off-by: Tobias Klauser <tklauser at nuerscht.ch>
Cc: Thomas Gleixner <tglx at linutronix.de>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
Signed-off-by: Andrew Morton <akpm at osdl.org>
Index: au1550nd.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/au1550nd.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- au1550nd.c 13 Nov 2005 09:52:07 -0000 1.14
+++ au1550nd.c 29 Mar 2006 08:31:12 -0000 1.15
@@ -56,8 +56,6 @@
.size = MTDPART_SIZ_FULL
}
};
-#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
-
/**
* au_read_byte - read one byte from the chip
@@ -597,7 +595,7 @@
}
/* Register the partitions */
- add_mtd_partitions(au1550_mtd, partition_info, NB_OF(partition_info));
+ add_mtd_partitions(au1550_mtd, partition_info, ARRAY_SIZE(partition_info));
return 0;
- Previous message: mtd/drivers/mtd/maps alchemy-flash.c, 1.2, 1.3 cfi_flagadm.c, 1.15,
1.16 dbox2-flash.c, 1.14, 1.15 dilnetpc.c, 1.20, 1.21 dmv182.c,
1.6, 1.7 h720x-flash.c, 1.12, 1.13 netsc520.c, 1.14,
1.15 nettel.c, 1.12, 1.13 ocotea.c, 1.4, 1.5 pcmciamtd.c, 1.58,
1.59 redwood.c, 1.11, 1.12 sbc8240.c, 1.5, 1.6 sc520cdp.c,
1.23, 1.24 scx200_docflash.c, 1.12, 1.13 sharpsl-flash.c, 1.7,
1.8 ts5500_flash.c, 1.6, 1.7 uclinux.c, 1.12, 1.13
- Next message: mtd/drivers/mtd/chips amd_flash.c, 1.28, 1.29 jedec_probe.c, 1.66,
1.67
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list