aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/maps/cfi_flagadm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/cfi_flagadm.c')
-rw-r--r--drivers/mtd/maps/cfi_flagadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/cfi_flagadm.c b/drivers/mtd/maps/cfi_flagadm.c
index 6a8c0415bde..fd0f0d3187d 100644
--- a/drivers/mtd/maps/cfi_flagadm.c
+++ b/drivers/mtd/maps/cfi_flagadm.c
@@ -86,7 +86,7 @@ struct mtd_partition flagadm_parts[] = {
}
};
-#define PARTITION_COUNT (sizeof(flagadm_parts)/sizeof(struct mtd_partition))
+#define PARTITION_COUNT ARRAY_SIZE(flagadm_parts)
static struct mtd_info *mymtd;