X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fchar%2Fsx.c;h=564f31778eb32453d35fed74b2db1287d9162a0a;hb=fe971071a89c5c5184fc9f3482c7a8e997cf0520;hp=3ad758a9a1dc104d70b718978e1928f57bc7c274;hpb=3c6bee1d4037a5c569f30d40bd852a57ba250912;p=deliverable%2Flinux.git diff --git a/drivers/char/sx.c b/drivers/char/sx.c index 3ad758a9a1dc..564f31778eb3 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c @@ -345,9 +345,9 @@ static int si_probe_addrs[]= {0xc0000, 0xd0000, 0xe0000, 0xc8000, 0xd8000, 0xe8000, 0xa0000}; static int si1_probe_addrs[]= { 0xd0000}; -#define NR_SX_ADDRS (sizeof(sx_probe_addrs)/sizeof (int)) -#define NR_SI_ADDRS (sizeof(si_probe_addrs)/sizeof (int)) -#define NR_SI1_ADDRS (sizeof(si1_probe_addrs)/sizeof (int)) +#define NR_SX_ADDRS ARRAY_SIZE(sx_probe_addrs) +#define NR_SI_ADDRS ARRAY_SIZE(si_probe_addrs) +#define NR_SI1_ADDRS ARRAY_SIZE(si1_probe_addrs) /* Set the mask to all-ones. This alas, only supports 32 interrupts.