git.openpandora.org
/
pandora-kernel.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
[pandora-kernel.git]
/
drivers
/
mtd
/
maps
/
sc520cdp.c
diff --git
a/drivers/mtd/maps/sc520cdp.c
b/drivers/mtd/maps/sc520cdp.c
index
ed92afa
..
e8c130e
100644
(file)
--- a/
drivers/mtd/maps/sc520cdp.c
+++ b/
drivers/mtd/maps/sc520cdp.c
@@
-107,7
+107,7
@@
static struct map_info sc520cdp_map[] = {
},
};
-#define NUM_FLASH_BANKS
(sizeof(sc520cdp_map)/sizeof(struct map_info)
)
+#define NUM_FLASH_BANKS
ARRAY_SIZE(sc520cdp_map
)
static struct mtd_info *mymtd[NUM_FLASH_BANKS];
static struct mtd_info *merged_mtd;