X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=arch%2Fv850%2Fkernel%2Fme2.c;h=38be5c194f6b9a5ca782a2b71f07e66f60e0e7e3;hb=67d38229dfa64cf9a75f83746dde345f47bbd8dc;hp=14b0c8858aa46a8445dc44ee8f566316b0b04fbb;hpb=db1a19b38f3a85f475b4ad716c71be133d8ca48e;p=powerpc.git diff --git a/arch/v850/kernel/me2.c b/arch/v850/kernel/me2.c index 14b0c8858a..38be5c194f 100644 --- a/arch/v850/kernel/me2.c +++ b/arch/v850/kernel/me2.c @@ -44,7 +44,7 @@ static struct v850e_intc_irq_init irq_inits[] = { { "UBTITO", IRQ_INTUBTITO(0), IRQ_INTUBTITO_NUM, 5, 4 }, { 0 } }; -#define NUM_IRQ_INITS ((sizeof irq_inits / sizeof irq_inits[0]) - 1) +#define NUM_IRQ_INITS (ARRAY_SIZE(irq_inits) - 1) static struct hw_interrupt_type hw_itypes[NUM_IRQ_INITS];