diff options
Diffstat (limited to 'drivers/scsi/aacraid/linit.c')
-rw-r--r-- | drivers/scsi/aacraid/linit.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index cb7f1582a6d1..408a42ef787a 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c | |||
@@ -88,13 +88,7 @@ char aac_driver_version[] = AAC_DRIVER_FULL_VERSION; | |||
88 | * | 88 | * |
89 | * Note: The last field is used to index into aac_drivers below. | 89 | * Note: The last field is used to index into aac_drivers below. |
90 | */ | 90 | */ |
91 | #ifdef DECLARE_PCI_DEVICE_TABLE | 91 | static const struct pci_device_id aac_pci_tbl[] = { |
92 | static DECLARE_PCI_DEVICE_TABLE(aac_pci_tbl) = { | ||
93 | #elif defined(__devinitconst) | ||
94 | static const struct pci_device_id aac_pci_tbl[] __devinitconst = { | ||
95 | #else | ||
96 | static const struct pci_device_id aac_pci_tbl[] __devinitconst = { | ||
97 | #endif | ||
98 | { 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */ | 92 | { 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */ |
99 | { 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */ | 93 | { 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */ |
100 | { 0x1028, 0x0003, 0x1028, 0x0003, 0, 0, 2 }, /* PERC 3/Si (SlimFast/PERC3Si */ | 94 | { 0x1028, 0x0003, 0x1028, 0x0003, 0, 0, 2 }, /* PERC 3/Si (SlimFast/PERC3Si */ |
@@ -1107,8 +1101,7 @@ static void __aac_shutdown(struct aac_dev * aac) | |||
1107 | pci_disable_msi(aac->pdev); | 1101 | pci_disable_msi(aac->pdev); |
1108 | } | 1102 | } |
1109 | 1103 | ||
1110 | static int __devinit aac_probe_one(struct pci_dev *pdev, | 1104 | static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
1111 | const struct pci_device_id *id) | ||
1112 | { | 1105 | { |
1113 | unsigned index = id->driver_data; | 1106 | unsigned index = id->driver_data; |
1114 | struct Scsi_Host *shost; | 1107 | struct Scsi_Host *shost; |
@@ -1310,7 +1303,7 @@ static void aac_shutdown(struct pci_dev *dev) | |||
1310 | __aac_shutdown((struct aac_dev *)shost->hostdata); | 1303 | __aac_shutdown((struct aac_dev *)shost->hostdata); |
1311 | } | 1304 | } |
1312 | 1305 | ||
1313 | static void __devexit aac_remove_one(struct pci_dev *pdev) | 1306 | static void aac_remove_one(struct pci_dev *pdev) |
1314 | { | 1307 | { |
1315 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 1308 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
1316 | struct aac_dev *aac = (struct aac_dev *)shost->hostdata; | 1309 | struct aac_dev *aac = (struct aac_dev *)shost->hostdata; |
@@ -1341,7 +1334,7 @@ static struct pci_driver aac_pci_driver = { | |||
1341 | .name = AAC_DRIVERNAME, | 1334 | .name = AAC_DRIVERNAME, |
1342 | .id_table = aac_pci_tbl, | 1335 | .id_table = aac_pci_tbl, |
1343 | .probe = aac_probe_one, | 1336 | .probe = aac_probe_one, |
1344 | .remove = __devexit_p(aac_remove_one), | 1337 | .remove = aac_remove_one, |
1345 | .shutdown = aac_shutdown, | 1338 | .shutdown = aac_shutdown, |
1346 | }; | 1339 | }; |
1347 | 1340 | ||