aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:08:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:01 -0500
commit6f039790510fd630ff348efe8c4802dbaa041fba (patch)
treebf99ab35c78f689a40f3057537209be5f7ca88d6 /drivers/scsi/aacraid
parent48c68c4f1b542444f175a9e136febcecf3e704d8 (diff)
Drivers: scsi: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Adam Radford <linuxraid@lsi.com> Cc: "James E.J. Bottomley" <JBottomley@parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/aacraid')
-rw-r--r--drivers/scsi/aacraid/linit.c15
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 91static const struct pci_device_id aac_pci_tbl[] = {
92static DECLARE_PCI_DEVICE_TABLE(aac_pci_tbl) = {
93#elif defined(__devinitconst)
94static const struct pci_device_id aac_pci_tbl[] __devinitconst = {
95#else
96static 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
1110static int __devinit aac_probe_one(struct pci_dev *pdev, 1104static 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
1313static void __devexit aac_remove_one(struct pci_dev *pdev) 1306static 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