aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic94xx/aic94xx_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_init.c')
-rw-r--r--drivers/scsi/aic94xx/aic94xx_init.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c
index 1c4120c3db41..c56741fc4b99 100644
--- a/drivers/scsi/aic94xx/aic94xx_init.c
+++ b/drivers/scsi/aic94xx/aic94xx_init.c
@@ -85,7 +85,7 @@ static struct scsi_host_template aic94xx_sht = {
85 .ioctl = sas_ioctl, 85 .ioctl = sas_ioctl,
86}; 86};
87 87
88static int __devinit asd_map_memio(struct asd_ha_struct *asd_ha) 88static int asd_map_memio(struct asd_ha_struct *asd_ha)
89{ 89{
90 int err, i; 90 int err, i;
91 struct asd_ha_addrspace *io_handle; 91 struct asd_ha_addrspace *io_handle;
@@ -146,7 +146,7 @@ static void asd_unmap_memio(struct asd_ha_struct *asd_ha)
146 pci_release_region(asd_ha->pcidev, 0); 146 pci_release_region(asd_ha->pcidev, 0);
147} 147}
148 148
149static int __devinit asd_map_ioport(struct asd_ha_struct *asd_ha) 149static int asd_map_ioport(struct asd_ha_struct *asd_ha)
150{ 150{
151 int i = PCI_IOBAR_OFFSET, err; 151 int i = PCI_IOBAR_OFFSET, err;
152 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; 152 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0];
@@ -175,7 +175,7 @@ static void asd_unmap_ioport(struct asd_ha_struct *asd_ha)
175 pci_release_region(asd_ha->pcidev, PCI_IOBAR_OFFSET); 175 pci_release_region(asd_ha->pcidev, PCI_IOBAR_OFFSET);
176} 176}
177 177
178static int __devinit asd_map_ha(struct asd_ha_struct *asd_ha) 178static int asd_map_ha(struct asd_ha_struct *asd_ha)
179{ 179{
180 int err; 180 int err;
181 u16 cmd_reg; 181 u16 cmd_reg;
@@ -221,7 +221,7 @@ static const char *asd_dev_rev[30] = {
221 [8] = "B0", 221 [8] = "B0",
222}; 222};
223 223
224static int __devinit asd_common_setup(struct asd_ha_struct *asd_ha) 224static int asd_common_setup(struct asd_ha_struct *asd_ha)
225{ 225{
226 int err, i; 226 int err, i;
227 227
@@ -257,7 +257,7 @@ Err:
257 return err; 257 return err;
258} 258}
259 259
260static int __devinit asd_aic9410_setup(struct asd_ha_struct *asd_ha) 260static int asd_aic9410_setup(struct asd_ha_struct *asd_ha)
261{ 261{
262 int err = asd_common_setup(asd_ha); 262 int err = asd_common_setup(asd_ha);
263 263
@@ -272,7 +272,7 @@ static int __devinit asd_aic9410_setup(struct asd_ha_struct *asd_ha)
272 return 0; 272 return 0;
273} 273}
274 274
275static int __devinit asd_aic9405_setup(struct asd_ha_struct *asd_ha) 275static int asd_aic9405_setup(struct asd_ha_struct *asd_ha)
276{ 276{
277 int err = asd_common_setup(asd_ha); 277 int err = asd_common_setup(asd_ha);
278 278
@@ -531,7 +531,7 @@ static void asd_remove_dev_attrs(struct asd_ha_struct *asd_ha)
531static const struct asd_pcidev_struct { 531static const struct asd_pcidev_struct {
532 const char * name; 532 const char * name;
533 int (*setup)(struct asd_ha_struct *asd_ha); 533 int (*setup)(struct asd_ha_struct *asd_ha);
534} asd_pcidev_data[] __devinitconst = { 534} asd_pcidev_data[] = {
535 /* Id 0 is used for dynamic ids. */ 535 /* Id 0 is used for dynamic ids. */
536 { .name = "Adaptec AIC-94xx SAS/SATA Host Adapter", 536 { .name = "Adaptec AIC-94xx SAS/SATA Host Adapter",
537 .setup = asd_aic9410_setup 537 .setup = asd_aic9410_setup
@@ -731,8 +731,7 @@ static int asd_unregister_sas_ha(struct asd_ha_struct *asd_ha)
731 return err; 731 return err;
732} 732}
733 733
734static int __devinit asd_pci_probe(struct pci_dev *dev, 734static int asd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
735 const struct pci_device_id *id)
736{ 735{
737 const struct asd_pcidev_struct *asd_dev; 736 const struct asd_pcidev_struct *asd_dev;
738 unsigned asd_id = (unsigned) id->driver_data; 737 unsigned asd_id = (unsigned) id->driver_data;
@@ -924,7 +923,7 @@ static void asd_turn_off_leds(struct asd_ha_struct *asd_ha)
924 } 923 }
925} 924}
926 925
927static void __devexit asd_pci_remove(struct pci_dev *dev) 926static void asd_pci_remove(struct pci_dev *dev)
928{ 927{
929 struct asd_ha_struct *asd_ha = pci_get_drvdata(dev); 928 struct asd_ha_struct *asd_ha = pci_get_drvdata(dev);
930 929
@@ -1012,7 +1011,7 @@ static struct sas_domain_function_template aic94xx_transport_functions = {
1012 .lldd_ata_set_dmamode = asd_set_dmamode, 1011 .lldd_ata_set_dmamode = asd_set_dmamode,
1013}; 1012};
1014 1013
1015static const struct pci_device_id aic94xx_pci_table[] __devinitconst = { 1014static const struct pci_device_id aic94xx_pci_table[] = {
1016 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x410),0, 0, 1}, 1015 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x410),0, 0, 1},
1017 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x412),0, 0, 1}, 1016 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x412),0, 0, 1},
1018 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x416),0, 0, 1}, 1017 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x416),0, 0, 1},
@@ -1031,7 +1030,7 @@ static struct pci_driver aic94xx_pci_driver = {
1031 .name = ASD_DRIVER_NAME, 1030 .name = ASD_DRIVER_NAME,
1032 .id_table = aic94xx_pci_table, 1031 .id_table = aic94xx_pci_table,
1033 .probe = asd_pci_probe, 1032 .probe = asd_pci_probe,
1034 .remove = __devexit_p(asd_pci_remove), 1033 .remove = asd_pci_remove,
1035}; 1034};
1036 1035
1037static int __init aic94xx_init(void) 1036static int __init aic94xx_init(void)