aboutsummaryrefslogtreecommitdiff
path: root/arch/arm26/kernel/ecard.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm26/kernel/ecard.c')
-rw-r--r--arch/arm26/kernel/ecard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm26/kernel/ecard.c b/arch/arm26/kernel/ecard.c
index 9dbc17247c6..e2bcefc91cc 100644
--- a/arch/arm26/kernel/ecard.c
+++ b/arch/arm26/kernel/ecard.c
@@ -665,7 +665,7 @@ ecard_probe(int slot, card_type_t type)
ec->fiqmask = 4;
}
- for (i = 0; i < sizeof(blacklist) / sizeof(*blacklist); i++)
+ for (i = 0; i < ARRAY_SIZE(blacklist); i++)
if (blacklist[i].manufacturer == ec->cid.manufacturer &&
blacklist[i].product == ec->cid.product) {
ec->card_desc = blacklist[i].type;