mtd/drivers/mtd/chips cfi_cmdset_0001.c,1.118,1.119
cfi_cmdset_0002.c,1.71,1.72 cfi_cmdset_0020.c,1.3,1.4
chipreg.c,1.14,1.15 gen_probe.c,1.10,1.11 jedec.c,1.16,1.17
jedec_probe.c,1.26,1.27 map_absent.c,1.2,1.3 map_ram.c,1.15,1.16
map_rom.c,1.18,1.19
David Woodhouse
dwmw2 at infradead.org
Wed May 21 11:15:40 EDT 2003
- Previous message: mtd/drivers/mtd mtd_blkdevs-24.c,1.8,1.9 mtdcore.c,1.38,1.39
mtdpart.c,1.38,1.39 Makefile-2.4,1.1,NONE Makefile-2.5,1.1,NONE
initcalls.c,1.3,NONE
- Next message: mtd/drivers/mtd Rules.make,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd/chips
In directory phoenix.infradead.org:/tmp/cvs-serv26797/drivers/mtd/chips
Modified Files:
cfi_cmdset_0001.c cfi_cmdset_0002.c cfi_cmdset_0020.c
chipreg.c gen_probe.c jedec.c jedec_probe.c map_absent.c
map_ram.c map_rom.c
Log Message:
include cleanups
Index: cfi_cmdset_0001.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0001.c,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -r1.118 -r1.119
--- cfi_cmdset_0001.c 21 May 2003 11:45:53 -0000 1.118
+++ cfi_cmdset_0001.c 21 May 2003 15:15:04 -0000 1.119
@@ -29,6 +29,7 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/mtd/map.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/cfi.h>
#include <linux/mtd/compatmac.h>
Index: cfi_cmdset_0002.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0002.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -r1.71 -r1.72
--- cfi_cmdset_0002.c 21 May 2003 11:45:53 -0000 1.71
+++ cfi_cmdset_0002.c 21 May 2003 15:15:04 -0000 1.72
@@ -24,7 +24,9 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/mtd/map.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/cfi.h>
+#include <linux/mtd/compatmac.h>
#define AMD_BOOTLOC_BUG
Index: cfi_cmdset_0020.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/cfi_cmdset_0020.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- cfi_cmdset_0020.c 21 May 2003 11:45:53 -0000 1.3
+++ cfi_cmdset_0020.c 21 May 2003 15:15:05 -0000 1.4
@@ -25,11 +25,13 @@
#include <asm/byteorder.h>
#include <linux/errno.h>
+#include <linux/init.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/mtd/map.h>
#include <linux/mtd/cfi.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/compatmac.h>
@@ -1433,13 +1435,13 @@
static char im_name[]="cfi_cmdset_0020";
-mod_init_t cfi_staa_init(void)
+int __init cfi_staa_init(void)
{
inter_module_register(im_name, THIS_MODULE, &cfi_cmdset_0020);
return 0;
}
-mod_exit_t cfi_staa_exit(void)
+static void __exit cfi_staa_exit(void)
{
inter_module_unregister(im_name);
}
Index: chipreg.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/chipreg.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- chipreg.c 21 May 2003 11:42:06 -0000 1.14
+++ chipreg.c 21 May 2003 15:15:05 -0000 1.15
@@ -7,9 +7,13 @@
#include <linux/kernel.h>
#include <linux/config.h>
+#include <linux/module.h>
#include <linux/kmod.h>
#include <linux/spinlock.h>
+#include <linux/slab.h>
#include <linux/mtd/map.h>
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/compatmac.h>
spinlock_t chip_drvs_lock = SPIN_LOCK_UNLOCKED;
static LIST_HEAD(chip_drvs_list);
Index: gen_probe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/gen_probe.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- gen_probe.c 31 Jan 2003 13:35:07 -0000 1.10
+++ gen_probe.c 21 May 2003 15:15:05 -0000 1.11
@@ -6,9 +6,12 @@
*/
#include <linux/kernel.h>
+#include <linux/slab.h>
+#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/cfi.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/gen_probe.h>
static struct mtd_info *check_cmd_set(struct map_info *, int);
Index: jedec.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/jedec.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- jedec.c 21 May 2003 11:50:36 -0000 1.16
+++ jedec.c 21 May 2003 15:15:05 -0000 1.17
@@ -20,6 +20,7 @@
#include <linux/mtd/jedec.h>
#include <linux/mtd/map.h>
#include <linux/mtd/mtd.h>
+#include <linux/mtd/compatmac.h>
static struct mtd_info *jedec_probe(struct map_info *);
static int jedec_probe8(struct map_info *map,unsigned long base,
@@ -234,7 +235,7 @@
MTD->priv = map;
map->fldrv_priv = priv;
map->fldrv = &jedec_chipdrv;
- MOD_INC_USE_COUNT;
+ __module_get(THIS_MODULE);
return MTD;
}
Index: jedec_probe.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/jedec_probe.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- jedec_probe.c 6 May 2003 21:34:41 -0000 1.26
+++ jedec_probe.c 21 May 2003 15:15:05 -0000 1.27
@@ -16,6 +16,7 @@
#include <linux/slab.h>
#include <linux/interrupt.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/cfi.h>
#include <linux/mtd/gen_probe.h>
Index: map_absent.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/map_absent.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- map_absent.c 2 Oct 2001 15:05:12 -0000 1.2
+++ map_absent.c 21 May 2003 15:15:05 -0000 1.3
@@ -23,9 +23,10 @@
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
-
+#include <linux/init.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
-
+#include <linux/mtd/compatmac.h>
static int map_absent_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
static int map_absent_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
@@ -65,7 +66,7 @@
mtd->flags = 0;
mtd->erasesize = PAGE_SIZE;
- MOD_INC_USE_COUNT;
+ __module_get(THIS_MODULE);
return mtd;
}
Index: map_ram.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/map_ram.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- map_ram.c 14 May 2003 15:05:13 -0000 1.15
+++ map_ram.c 21 May 2003 15:15:05 -0000 1.16
@@ -11,8 +11,10 @@
#include <asm/byteorder.h>
#include <linux/errno.h>
#include <linux/slab.h>
-
+#include <linux/init.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
+#include <linux/mtd/compatmac.h>
static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
@@ -74,7 +76,7 @@
while(mtd->size & (mtd->erasesize - 1))
mtd->erasesize >>= 1;
- MOD_INC_USE_COUNT;
+ __module_get(THIS_MODULE);
return mtd;
}
Index: map_rom.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/chips/map_rom.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- map_rom.c 14 May 2003 15:05:13 -0000 1.18
+++ map_rom.c 21 May 2003 15:15:05 -0000 1.19
@@ -12,8 +12,10 @@
#include <asm/byteorder.h>
#include <linux/errno.h>
#include <linux/slab.h>
-
+#include <linux/init.h>
+#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
+#include <linux/mtd/compatmac.h>
static int maprom_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
static int maprom_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
@@ -49,7 +51,7 @@
while(mtd->size & (mtd->erasesize - 1))
mtd->erasesize >>= 1;
- MOD_INC_USE_COUNT;
+ __module_get(THIS_MODULE);
return mtd;
}
- Previous message: mtd/drivers/mtd mtd_blkdevs-24.c,1.8,1.9 mtdcore.c,1.38,1.39
mtdpart.c,1.38,1.39 Makefile-2.4,1.1,NONE Makefile-2.5,1.1,NONE
initcalls.c,1.3,NONE
- Next message: mtd/drivers/mtd Rules.make,1.3,NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list