projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] drivers/mtd: Use ARRAY_SIZE macro
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
maps
/
redwood.c
diff --git
a/drivers/mtd/maps/redwood.c
b/drivers/mtd/maps/redwood.c
index 5b76ed8861859d7ce47305de56b35ec991f4a11a..50b14033613f665554af3fc93168cfd126ab3709 100644
(file)
--- a/
drivers/mtd/maps/redwood.c
+++ b/
drivers/mtd/maps/redwood.c
@@
-121,8
+121,7
@@
struct map_info redwood_flash_map = {
};
-#define NUM_REDWOOD_FLASH_PARTITIONS \
- (sizeof(redwood_flash_partitions)/sizeof(redwood_flash_partitions[0]))
+#define NUM_REDWOOD_FLASH_PARTITIONS ARRAY_SIZE(redwood_flash_partitions)
static struct mtd_info *redwood_mtd;