From: Jim Cromie Date: Wed, 11 Apr 2012 00:56:49 +0000 (-0600) Subject: pcmcia: replace open-coded ARRAY_SIZE with macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e632cd94723e12083ee5d0c633f37ce504a54c2b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git pcmcia: replace open-coded ARRAY_SIZE with macro Signed-off-by: Jim Cromie Signed-off-by: Dominik Brodowski --- diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c index a2c138719bac..479b7951b1c3 100644 --- a/drivers/pcmcia/i82365.c +++ b/drivers/pcmcia/i82365.c @@ -208,7 +208,7 @@ static pcic_t pcic[] = { { "VIA VT83C469", IS_CIRRUS|IS_VIA }, }; -#define PCIC_COUNT (sizeof(pcic)/sizeof(pcic_t)) +#define PCIC_COUNT ARRAY_SIZE(pcic) /*====================================================================*/