[RFC PATCH 7/9] nand/denali: annotate pci init/exit functions with correct section

Jamie Iles jamie at jamieiles.com
Fri May 6 10:29:01 EDT 2011


The module init exit functions should be annotated with __init and
__exit.

Cc: David Woodhouse <dwmw2 at infradead.org>
Cc: Chuanxiao Dong <chuanxiao.dong at intel.com>
Signed-off-by: Jamie Iles <jamie at jamieiles.com>
---
 drivers/mtd/nand/denali_pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/denali_pci.c b/drivers/mtd/nand/denali_pci.c
index 1096d49..3d9a46a 100644
--- a/drivers/mtd/nand/denali_pci.c
+++ b/drivers/mtd/nand/denali_pci.c
@@ -130,13 +130,13 @@ static struct pci_driver denali_pci_driver = {
 	.remove = denali_pci_remove,
 };
 
-static int __devinit denali_init_pci(void)
+static int __init denali_init_pci(void)
 {
 	return pci_register_driver(&denali_pci_driver);
 }
 module_init(denali_init_pci);
 
-static void __devexit denali_exit_pci(void)
+static void __exit denali_exit_pci(void)
 {
 	pci_unregister_driver(&denali_pci_driver);
 }
-- 
1.7.4.4




More information about the linux-mtd mailing list