summaryrefslogtreecommitdiffstats
path: root/arch/v850/kernel/fpga85e2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/v850/kernel/fpga85e2c.c')
-rw-r--r--arch/v850/kernel/fpga85e2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/v850/kernel/fpga85e2c.c b/arch/v850/kernel/fpga85e2c.c
index cb04a69..5c49235 100644
--- a/arch/v850/kernel/fpga85e2c.c
+++ b/arch/v850/kernel/fpga85e2c.c
@@ -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];
OpenPOWER on IntegriCloud