git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
mtd
/
maps
/
netsc520.c
diff --git
a/drivers/mtd/maps/netsc520.c
b/drivers/mtd/maps/netsc520.c
index
33060a3
..
ed21547
100644
(file)
--- a/
drivers/mtd/maps/netsc520.c
+++ b/
drivers/mtd/maps/netsc520.c
@@
-76,7
+76,7
@@
static struct mtd_partition partition_info[]={
.size = 0x80000
},
};
.size = 0x80000
},
};
-#define NUM_PARTITIONS
(sizeof(partition_info)/sizeof(partition_info[0])
)
+#define NUM_PARTITIONS
ARRAY_SIZE(partition_info
)
#define WINDOW_SIZE 0x00100000
#define WINDOW_ADDR 0x00200000
#define WINDOW_SIZE 0x00100000
#define WINDOW_ADDR 0x00200000
@@
-88,7
+88,7
@@
static struct map_info netsc520_map = {
.phys = WINDOW_ADDR,
};
.phys = WINDOW_ADDR,
};
-#define NUM_FLASH_BANKS
(sizeof(netsc520_map)/sizeof(struct map_info)
)
+#define NUM_FLASH_BANKS
ARRAY_SIZE(netsc520_map
)
static struct mtd_info *mymtd;
static struct mtd_info *mymtd;