ARRAY_SIZE changes
[linux-2.6.git] / arch / cris / arch-v32 / mach-a3 / io.c
index c22f67ecd9f37e2abd91d59131b9278968ebdcc0..090ceb99ef0ba92591c1cddbec326a1e4661e5d0 100644 (file)
@@ -36,7 +36,7 @@ struct crisv32_ioport crisv32_ioports[] = {
        },
 };
 
-#define NBR_OF_PORTS sizeof(crisv32_ioports)/sizeof(struct crisv32_ioport)
+#define NBR_OF_PORTS ARRAY_SIZE(crisv32_ioports)
 
 struct crisv32_iopin crisv32_led_net0_green;
 struct crisv32_iopin crisv32_led_net0_red;