]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/cyclades.c
[PATCH] drivers/char: Use ARRAY_SIZE macro
[linux-2.6-omap-h63xx.git] / drivers / char / cyclades.c
index c7f818cd7b0214b321d9c6d5d7e3b5bf4c34ef03..c8e7daecad728f9e4e3987636cecc817d8360ab6 100644 (file)
@@ -723,7 +723,7 @@ static unsigned int cy_isa_addresses[] = {
         0xDE000,
         0,0,0,0,0,0,0,0
 };
-#define NR_ISA_ADDRS (sizeof(cy_isa_addresses)/sizeof(unsigned char*))
+#define NR_ISA_ADDRS ARRAY_SIZE(cy_isa_addresses)
 
 #ifdef MODULE
 static long maddr[NR_CARDS] = { 0, };