trivial: mtd: add __init/__exit macros to init/exitfunctions

Trivial patch which adds the __init and __exit macros to the module_init /
module_exit functions to the following modules from drivers/mtd/
 devices/m25p80.c
 devices/slram.c
 linux version 2.6.30
 ftl.c
 nand/cafe_nand.c
 nand/cmx270_nand.c

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Peter Huewe 2009-06-11 02:23:33 +02:00 committed by Jiri Kosina
parent fe002a4197
commit 627df23c61
5 changed files with 8 additions and 8 deletions

View File

@ -776,13 +776,13 @@ static struct spi_driver m25p80_driver = {
}; };
static int m25p80_init(void) static int __init m25p80_init(void)
{ {
return spi_register_driver(&m25p80_driver); return spi_register_driver(&m25p80_driver);
} }
static void m25p80_exit(void) static void __exit m25p80_exit(void)
{ {
spi_unregister_driver(&m25p80_driver); spi_unregister_driver(&m25p80_driver);
} }

View File

@ -303,7 +303,7 @@ __setup("slram=", mtd_slram_setup);
#endif #endif
static int init_slram(void) static int __init init_slram(void)
{ {
char *devname; char *devname;
int i; int i;

View File

@ -1099,7 +1099,7 @@ static struct mtd_blktrans_ops ftl_tr = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}; };
static int init_ftl(void) static int __init init_ftl(void)
{ {
return register_mtd_blktrans(&ftl_tr); return register_mtd_blktrans(&ftl_tr);
} }

View File

@ -903,12 +903,12 @@ static struct pci_driver cafe_nand_pci_driver = {
.resume = cafe_nand_resume, .resume = cafe_nand_resume,
}; };
static int cafe_nand_init(void) static int __init cafe_nand_init(void)
{ {
return pci_register_driver(&cafe_nand_pci_driver); return pci_register_driver(&cafe_nand_pci_driver);
} }
static void cafe_nand_exit(void) static void __exit cafe_nand_exit(void)
{ {
pci_unregister_driver(&cafe_nand_pci_driver); pci_unregister_driver(&cafe_nand_pci_driver);
} }

View File

@ -147,7 +147,7 @@ static int cmx270_device_ready(struct mtd_info *mtd)
/* /*
* Main initialization routine * Main initialization routine
*/ */
static int cmx270_init(void) static int __init cmx270_init(void)
{ {
struct nand_chip *this; struct nand_chip *this;
const char *part_type; const char *part_type;
@ -261,7 +261,7 @@ module_init(cmx270_init);
/* /*
* Clean up routine * Clean up routine
*/ */
static void cmx270_cleanup(void) static void __exit cmx270_cleanup(void)
{ {
/* Release resources, unregister device */ /* Release resources, unregister device */
nand_release(cmx270_nand_mtd); nand_release(cmx270_nand_mtd);