ARRAY_SIZE changes
[linux-2.6.git] / arch / cris / arch-v32 / mach-fs / io.c
index cb6327b1f8f826051a4ad975aa324d564b602500..a6958661fa8e0bbd1b2fde30d3c6de8764a404ed 100644 (file)
@@ -52,7 +52,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;