[PATCH] V850: user ARRAY_SIZE macro when appropriate
[sfrench/cifs-2.6.git] / arch / v850 / kernel / fpga85e2c.c
index cb04a6954ccbc5d99b639d119bc36a50fa6f96ca..5c4923558a75c8f7b5620ccb7a5fb3f20df60f3a 100644 (file)
@@ -138,7 +138,7 @@ struct v850e_intc_irq_init irq_inits[] = {
        { "RPU", IRQ_RPU(0),    IRQ_RPU_NUM,    1, 6 },
        { 0 }
 };
-#define NUM_IRQ_INITS ((sizeof irq_inits / sizeof irq_inits[0]) - 1)
+#define NUM_IRQ_INITS (ARRAY_SIZE(irq_inits) - 1)
 
 struct hw_interrupt_type hw_itypes[NUM_IRQ_INITS];