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
/
alchemy-flash.c
diff --git
a/drivers/mtd/maps/alchemy-flash.c
b/drivers/mtd/maps/alchemy-flash.c
index
a57791a
..
7fc8097
100644
(file)
--- a/
drivers/mtd/maps/alchemy-flash.c
+++ b/
drivers/mtd/maps/alchemy-flash.c
@@
-7,7
+7,6
@@
*
*/
*
*/
-#include <linux/config.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
@@
-126,8
+125,6
@@
static struct mtd_partition alchemy_partitions[] = {
}
};
}
};
-#define NB_OF(x) (sizeof(x)/sizeof(x[0]))
-
static struct mtd_info *mymtd;
int __init alchemy_mtd_init(void)
static struct mtd_info *mymtd;
int __init alchemy_mtd_init(void)
@@
-154,7
+151,7
@@
int __init alchemy_mtd_init(void)
* Static partition definition selection
*/
parts = alchemy_partitions;
* Static partition definition selection
*/
parts = alchemy_partitions;
- nb_parts =
NB_OF
(alchemy_partitions);
+ nb_parts =
ARRAY_SIZE
(alchemy_partitions);
alchemy_map.size = window_size;
/*
alchemy_map.size = window_size;
/*