aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/maps/ts5500_flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/ts5500_flash.c')
-rw-r--r--drivers/mtd/maps/ts5500_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/ts5500_flash.c b/drivers/mtd/maps/ts5500_flash.c
index 4b372bcb17f..a7422c20056 100644
--- a/drivers/mtd/maps/ts5500_flash.c
+++ b/drivers/mtd/maps/ts5500_flash.c
@@ -64,7 +64,7 @@ static struct mtd_partition ts5500_partitions[] = {
}
};
-#define NUM_PARTITIONS (sizeof(ts5500_partitions)/sizeof(struct mtd_partition))
+#define NUM_PARTITIONS ARRAY_SIZE(ts5500_partitions)
static struct mtd_info *mymtd;