aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sn
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-12-14 21:00:27 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-15 11:53:27 -0500
commit2ea5d35a49f5c89d1d2d677fe90c71ad5a6278b6 (patch)
tree3e5eb8efe966320b93ec948c8f95674d79912c5e /drivers/sn
parente4c570c4cb7a95dbfafa3d016d2739bf3fdfe319 (diff)
ioc3/ioc4: various section fixes
Several IOC3 and IOC4 drivers misuse the __devinit and __devexit section markers. Use __init and __exit instead as appropriate, then add __devinit and __devexit where they really belong for PCI drivers. Also make ioc4_serial_init static. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Pat Gefre <pfg@sgi.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/sn')
-rw-r--r--drivers/sn/ioc3.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/sn/ioc3.c b/drivers/sn/ioc3.c
index 816d4c592a3c..354e9f17e35a 100644
--- a/drivers/sn/ioc3.c
+++ b/drivers/sn/ioc3.c
@@ -574,11 +574,11 @@ void ioc3_unregister_submodule(struct ioc3_submodule *is)
574 * Device management * 574 * Device management *
575 *********************/ 575 *********************/
576 576
577static char * 577static char * __devinitdata
578ioc3_class_names[]={"unknown", "IP27 BaseIO", "IP30 system", "MENET 1/2/3", 578ioc3_class_names[]={"unknown", "IP27 BaseIO", "IP30 system", "MENET 1/2/3",
579 "MENET 4", "CADduo", "Altix Serial"}; 579 "MENET 4", "CADduo", "Altix Serial"};
580 580
581static int ioc3_class(struct ioc3_driver_data *idd) 581static int __devinit ioc3_class(struct ioc3_driver_data *idd)
582{ 582{
583 int res = IOC3_CLASS_NONE; 583 int res = IOC3_CLASS_NONE;
584 /* NIC-based logic */ 584 /* NIC-based logic */
@@ -601,7 +601,8 @@ static int ioc3_class(struct ioc3_driver_data *idd)
601 return res; 601 return res;
602} 602}
603/* Adds a new instance of an IOC3 card */ 603/* Adds a new instance of an IOC3 card */
604static int ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) 604static int __devinit
605ioc3_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
605{ 606{
606 struct ioc3_driver_data *idd; 607 struct ioc3_driver_data *idd;
607 uint32_t pcmd; 608 uint32_t pcmd;
@@ -753,7 +754,7 @@ out:
753} 754}
754 755
755/* Removes a particular instance of an IOC3 card. */ 756/* Removes a particular instance of an IOC3 card. */
756static void ioc3_remove(struct pci_dev *pdev) 757static void __devexit ioc3_remove(struct pci_dev *pdev)
757{ 758{
758 int id; 759 int id;
759 struct ioc3_driver_data *idd; 760 struct ioc3_driver_data *idd;
@@ -805,7 +806,7 @@ static struct pci_driver ioc3_driver = {
805 .name = "IOC3", 806 .name = "IOC3",
806 .id_table = ioc3_id_table, 807 .id_table = ioc3_id_table,
807 .probe = ioc3_probe, 808 .probe = ioc3_probe,
808 .remove = ioc3_remove, 809 .remove = __devexit_p(ioc3_remove),
809}; 810};
810 811
811MODULE_DEVICE_TABLE(pci, ioc3_id_table); 812MODULE_DEVICE_TABLE(pci, ioc3_id_table);
@@ -815,7 +816,7 @@ MODULE_DEVICE_TABLE(pci, ioc3_id_table);
815 *********************/ 816 *********************/
816 817
817/* Module load */ 818/* Module load */
818static int __devinit ioc3_init(void) 819static int __init ioc3_init(void)
819{ 820{
820 if (ia64_platform_is("sn2")) 821 if (ia64_platform_is("sn2"))
821 return pci_register_driver(&ioc3_driver); 822 return pci_register_driver(&ioc3_driver);
@@ -823,7 +824,7 @@ static int __devinit ioc3_init(void)
823} 824}
824 825
825/* Module unload */ 826/* Module unload */
826static void __devexit ioc3_exit(void) 827static void __exit ioc3_exit(void)
827{ 828{
828 pci_unregister_driver(&ioc3_driver); 829 pci_unregister_driver(&ioc3_driver);
829} 830}