diff options
85 files changed, 463 insertions, 525 deletions
diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index 3868ab2397c6..d1f0120cdb98 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c | |||
@@ -2029,7 +2029,7 @@ static struct scsi_host_template driver_template = { | |||
2029 | }; | 2029 | }; |
2030 | 2030 | ||
2031 | /* This function will probe and initialize a card */ | 2031 | /* This function will probe and initialize a card */ |
2032 | static int __devinit twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) | 2032 | static int twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) |
2033 | { | 2033 | { |
2034 | struct Scsi_Host *host = NULL; | 2034 | struct Scsi_Host *host = NULL; |
2035 | TW_Device_Extension *tw_dev; | 2035 | TW_Device_Extension *tw_dev; |
@@ -2305,7 +2305,7 @@ out_disable_device: | |||
2305 | #endif | 2305 | #endif |
2306 | 2306 | ||
2307 | /* PCI Devices supported by this driver */ | 2307 | /* PCI Devices supported by this driver */ |
2308 | static struct pci_device_id twa_pci_tbl[] __devinitdata = { | 2308 | static struct pci_device_id twa_pci_tbl[] = { |
2309 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9000, | 2309 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9000, |
2310 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 2310 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
2311 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9550SX, | 2311 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9550SX, |
diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index 13e39e1fdfe2..52a2f0580d97 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c | |||
@@ -1604,7 +1604,7 @@ static struct scsi_host_template driver_template = { | |||
1604 | }; | 1604 | }; |
1605 | 1605 | ||
1606 | /* This function will probe and initialize a card */ | 1606 | /* This function will probe and initialize a card */ |
1607 | static int __devinit twl_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) | 1607 | static int twl_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) |
1608 | { | 1608 | { |
1609 | struct Scsi_Host *host = NULL; | 1609 | struct Scsi_Host *host = NULL; |
1610 | TW_Device_Extension *tw_dev; | 1610 | TW_Device_Extension *tw_dev; |
@@ -1893,7 +1893,7 @@ out_disable_device: | |||
1893 | #endif | 1893 | #endif |
1894 | 1894 | ||
1895 | /* PCI Devices supported by this driver */ | 1895 | /* PCI Devices supported by this driver */ |
1896 | static struct pci_device_id twl_pci_tbl[] __devinitdata = { | 1896 | static struct pci_device_id twl_pci_tbl[] = { |
1897 | { PCI_VDEVICE(3WARE, PCI_DEVICE_ID_3WARE_9750) }, | 1897 | { PCI_VDEVICE(3WARE, PCI_DEVICE_ID_3WARE_9750) }, |
1898 | { } | 1898 | { } |
1899 | }; | 1899 | }; |
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index 7fe96ff60c58..62071d2fc1ce 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c | |||
@@ -2281,7 +2281,7 @@ static struct scsi_host_template driver_template = { | |||
2281 | }; | 2281 | }; |
2282 | 2282 | ||
2283 | /* This function will probe and initialize a card */ | 2283 | /* This function will probe and initialize a card */ |
2284 | static int __devinit tw_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) | 2284 | static int tw_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) |
2285 | { | 2285 | { |
2286 | struct Scsi_Host *host = NULL; | 2286 | struct Scsi_Host *host = NULL; |
2287 | TW_Device_Extension *tw_dev; | 2287 | TW_Device_Extension *tw_dev; |
@@ -2422,7 +2422,7 @@ static void tw_remove(struct pci_dev *pdev) | |||
2422 | } /* End tw_remove() */ | 2422 | } /* End tw_remove() */ |
2423 | 2423 | ||
2424 | /* PCI Devices supported by this driver */ | 2424 | /* PCI Devices supported by this driver */ |
2425 | static struct pci_device_id tw_pci_tbl[] __devinitdata = { | 2425 | static struct pci_device_id tw_pci_tbl[] = { |
2426 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_1000, | 2426 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_1000, |
2427 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 2427 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
2428 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_7000, | 2428 | { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_7000, |
diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index d4da3708763b..d7ca247efa35 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c | |||
@@ -3615,7 +3615,7 @@ static void __exit BusLogic_exit(void) | |||
3615 | __setup("BusLogic=", BusLogic_Setup); | 3615 | __setup("BusLogic=", BusLogic_Setup); |
3616 | 3616 | ||
3617 | #ifdef MODULE | 3617 | #ifdef MODULE |
3618 | static struct pci_device_id BusLogic_pci_tbl[] __devinitdata = { | 3618 | static struct pci_device_id BusLogic_pci_tbl[] = { |
3619 | { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER, | 3619 | { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER, |
3620 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 3620 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
3621 | { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC, | 3621 | { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC, |
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index 165e4dd865d9..450353e04dde 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c | |||
@@ -814,7 +814,7 @@ static char *lprint_opcode(int opcode, char *pos, char *buffer, int length) | |||
814 | * Locks: interrupts must be enabled when we are called | 814 | * Locks: interrupts must be enabled when we are called |
815 | */ | 815 | */ |
816 | 816 | ||
817 | static int __devinit NCR5380_init(struct Scsi_Host *instance, int flags) | 817 | static int NCR5380_init(struct Scsi_Host *instance, int flags) |
818 | { | 818 | { |
819 | NCR5380_local_declare(); | 819 | NCR5380_local_declare(); |
820 | int i, pass; | 820 | int i, pass; |
diff --git a/drivers/scsi/NCR_D700.c b/drivers/scsi/NCR_D700.c index 8647256ad66d..b39a2409a507 100644 --- a/drivers/scsi/NCR_D700.c +++ b/drivers/scsi/NCR_D700.c | |||
@@ -114,7 +114,7 @@ MODULE_DESCRIPTION("NCR Dual700 SCSI Driver"); | |||
114 | MODULE_LICENSE("GPL"); | 114 | MODULE_LICENSE("GPL"); |
115 | module_param(NCR_D700, charp, 0); | 115 | module_param(NCR_D700, charp, 0); |
116 | 116 | ||
117 | static __u8 __devinitdata id_array[2*(MCA_MAX_SLOT_NR + 1)] = | 117 | static __u8 id_array[2*(MCA_MAX_SLOT_NR + 1)] = |
118 | { [0 ... 2*(MCA_MAX_SLOT_NR + 1)-1] = 7 }; | 118 | { [0 ... 2*(MCA_MAX_SLOT_NR + 1)-1] = 7 }; |
119 | 119 | ||
120 | #ifdef MODULE | 120 | #ifdef MODULE |
@@ -173,7 +173,7 @@ struct NCR_D700_private { | |||
173 | char pad; | 173 | char pad; |
174 | }; | 174 | }; |
175 | 175 | ||
176 | static int __devinit | 176 | static int |
177 | NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq, | 177 | NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq, |
178 | int slot, u32 region, int differential) | 178 | int slot, u32 region, int differential) |
179 | { | 179 | { |
@@ -243,7 +243,7 @@ NCR_D700_intr(int irq, void *data) | |||
243 | * essentially connectecd to the MCA bus independently, it is easier | 243 | * essentially connectecd to the MCA bus independently, it is easier |
244 | * to set them up as two separate host adapters, rather than one | 244 | * to set them up as two separate host adapters, rather than one |
245 | * adapter with two channels */ | 245 | * adapter with two channels */ |
246 | static int __devinit | 246 | static int |
247 | NCR_D700_probe(struct device *dev) | 247 | NCR_D700_probe(struct device *dev) |
248 | { | 248 | { |
249 | struct NCR_D700_private *p; | 249 | struct NCR_D700_private *p; |
@@ -349,7 +349,7 @@ NCR_D700_probe(struct device *dev) | |||
349 | return 0; | 349 | return 0; |
350 | } | 350 | } |
351 | 351 | ||
352 | static void __devexit | 352 | static void |
353 | NCR_D700_remove_one(struct Scsi_Host *host) | 353 | NCR_D700_remove_one(struct Scsi_Host *host) |
354 | { | 354 | { |
355 | scsi_remove_host(host); | 355 | scsi_remove_host(host); |
@@ -359,7 +359,7 @@ NCR_D700_remove_one(struct Scsi_Host *host) | |||
359 | release_region(host->base, 64); | 359 | release_region(host->base, 64); |
360 | } | 360 | } |
361 | 361 | ||
362 | static int __devexit | 362 | static int |
363 | NCR_D700_remove(struct device *dev) | 363 | NCR_D700_remove(struct device *dev) |
364 | { | 364 | { |
365 | struct NCR_D700_private *p = dev_get_drvdata(dev); | 365 | struct NCR_D700_private *p = dev_get_drvdata(dev); |
@@ -380,7 +380,7 @@ static struct mca_driver NCR_D700_driver = { | |||
380 | .name = "NCR_D700", | 380 | .name = "NCR_D700", |
381 | .bus = &mca_bus_type, | 381 | .bus = &mca_bus_type, |
382 | .probe = NCR_D700_probe, | 382 | .probe = NCR_D700_probe, |
383 | .remove = __devexit_p(NCR_D700_remove), | 383 | .remove = NCR_D700_remove, |
384 | }, | 384 | }, |
385 | }; | 385 | }; |
386 | 386 | ||
diff --git a/drivers/scsi/NCR_Q720.c b/drivers/scsi/NCR_Q720.c index afdbb9addf18..05835bf1bf9c 100644 --- a/drivers/scsi/NCR_Q720.c +++ b/drivers/scsi/NCR_Q720.c | |||
@@ -351,7 +351,7 @@ static struct mca_driver NCR_Q720_driver = { | |||
351 | .name = "NCR_Q720", | 351 | .name = "NCR_Q720", |
352 | .bus = &mca_bus_type, | 352 | .bus = &mca_bus_type, |
353 | .probe = NCR_Q720_probe, | 353 | .probe = NCR_Q720_probe, |
354 | .remove = __devexit_p(NCR_Q720_remove), | 354 | .remove = NCR_Q720_remove, |
355 | }, | 355 | }, |
356 | }; | 356 | }; |
357 | 357 | ||
diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c index a391090a17c5..0163457c12bb 100644 --- a/drivers/scsi/a100u2w.c +++ b/drivers/scsi/a100u2w.c | |||
@@ -1082,8 +1082,8 @@ static struct scsi_host_template inia100_template = { | |||
1082 | .use_clustering = ENABLE_CLUSTERING, | 1082 | .use_clustering = ENABLE_CLUSTERING, |
1083 | }; | 1083 | }; |
1084 | 1084 | ||
1085 | static int __devinit inia100_probe_one(struct pci_dev *pdev, | 1085 | static int inia100_probe_one(struct pci_dev *pdev, |
1086 | const struct pci_device_id *id) | 1086 | const struct pci_device_id *id) |
1087 | { | 1087 | { |
1088 | struct Scsi_Host *shost; | 1088 | struct Scsi_Host *shost; |
1089 | struct orc_host *host; | 1089 | struct orc_host *host; |
@@ -1197,7 +1197,7 @@ out: | |||
1197 | return error; | 1197 | return error; |
1198 | } | 1198 | } |
1199 | 1199 | ||
1200 | static void __devexit inia100_remove_one(struct pci_dev *pdev) | 1200 | static void inia100_remove_one(struct pci_dev *pdev) |
1201 | { | 1201 | { |
1202 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 1202 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
1203 | struct orc_host *host = (struct orc_host *)shost->hostdata; | 1203 | struct orc_host *host = (struct orc_host *)shost->hostdata; |
@@ -1224,7 +1224,7 @@ static struct pci_driver inia100_pci_driver = { | |||
1224 | .name = "inia100", | 1224 | .name = "inia100", |
1225 | .id_table = inia100_pci_tbl, | 1225 | .id_table = inia100_pci_tbl, |
1226 | .probe = inia100_probe_one, | 1226 | .probe = inia100_probe_one, |
1227 | .remove = __devexit_p(inia100_remove_one), | 1227 | .remove = inia100_remove_one, |
1228 | }; | 1228 | }; |
1229 | 1229 | ||
1230 | static int __init inia100_init(void) | 1230 | static int __init inia100_init(void) |
diff --git a/drivers/scsi/a2091.c b/drivers/scsi/a2091.c index 79a30633d4aa..3e09aa21c1ca 100644 --- a/drivers/scsi/a2091.c +++ b/drivers/scsi/a2091.c | |||
@@ -179,8 +179,7 @@ static struct scsi_host_template a2091_scsi_template = { | |||
179 | .use_clustering = DISABLE_CLUSTERING | 179 | .use_clustering = DISABLE_CLUSTERING |
180 | }; | 180 | }; |
181 | 181 | ||
182 | static int __devinit a2091_probe(struct zorro_dev *z, | 182 | static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent) |
183 | const struct zorro_device_id *ent) | ||
184 | { | 183 | { |
185 | struct Scsi_Host *instance; | 184 | struct Scsi_Host *instance; |
186 | int error; | 185 | int error; |
@@ -239,7 +238,7 @@ fail_alloc: | |||
239 | return error; | 238 | return error; |
240 | } | 239 | } |
241 | 240 | ||
242 | static void __devexit a2091_remove(struct zorro_dev *z) | 241 | static void a2091_remove(struct zorro_dev *z) |
243 | { | 242 | { |
244 | struct Scsi_Host *instance = zorro_get_drvdata(z); | 243 | struct Scsi_Host *instance = zorro_get_drvdata(z); |
245 | struct a2091_hostdata *hdata = shost_priv(instance); | 244 | struct a2091_hostdata *hdata = shost_priv(instance); |
@@ -251,7 +250,7 @@ static void __devexit a2091_remove(struct zorro_dev *z) | |||
251 | release_mem_region(z->resource.start, 256); | 250 | release_mem_region(z->resource.start, 256); |
252 | } | 251 | } |
253 | 252 | ||
254 | static struct zorro_device_id a2091_zorro_tbl[] __devinitdata = { | 253 | static struct zorro_device_id a2091_zorro_tbl[] = { |
255 | { ZORRO_PROD_CBM_A590_A2091_1 }, | 254 | { ZORRO_PROD_CBM_A590_A2091_1 }, |
256 | { ZORRO_PROD_CBM_A590_A2091_2 }, | 255 | { ZORRO_PROD_CBM_A590_A2091_2 }, |
257 | { 0 } | 256 | { 0 } |
@@ -262,7 +261,7 @@ static struct zorro_driver a2091_driver = { | |||
262 | .name = "a2091", | 261 | .name = "a2091", |
263 | .id_table = a2091_zorro_tbl, | 262 | .id_table = a2091_zorro_tbl, |
264 | .probe = a2091_probe, | 263 | .probe = a2091_probe, |
265 | .remove = __devexit_p(a2091_remove), | 264 | .remove = a2091_remove, |
266 | }; | 265 | }; |
267 | 266 | ||
268 | static int __init a2091_init(void) | 267 | static int __init a2091_init(void) |
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 | ||
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 374c4edf4fcb..dcfaee66a8b9 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c | |||
@@ -9526,7 +9526,7 @@ advansys_queuecommand_lck(struct scsi_cmnd *scp, void (*done)(struct scsi_cmnd * | |||
9526 | 9526 | ||
9527 | static DEF_SCSI_QCMD(advansys_queuecommand) | 9527 | static DEF_SCSI_QCMD(advansys_queuecommand) |
9528 | 9528 | ||
9529 | static ushort __devinit AscGetEisaChipCfg(PortAddr iop_base) | 9529 | static ushort AscGetEisaChipCfg(PortAddr iop_base) |
9530 | { | 9530 | { |
9531 | PortAddr eisa_cfg_iop = (PortAddr) ASC_GET_EISA_SLOT(iop_base) | | 9531 | PortAddr eisa_cfg_iop = (PortAddr) ASC_GET_EISA_SLOT(iop_base) | |
9532 | (PortAddr) (ASC_EISA_CFG_IOP_MASK); | 9532 | (PortAddr) (ASC_EISA_CFG_IOP_MASK); |
@@ -9537,8 +9537,8 @@ static ushort __devinit AscGetEisaChipCfg(PortAddr iop_base) | |||
9537 | * Return the BIOS address of the adapter at the specified | 9537 | * Return the BIOS address of the adapter at the specified |
9538 | * I/O port and with the specified bus type. | 9538 | * I/O port and with the specified bus type. |
9539 | */ | 9539 | */ |
9540 | static unsigned short __devinit | 9540 | static unsigned short AscGetChipBiosAddress(PortAddr iop_base, |
9541 | AscGetChipBiosAddress(PortAddr iop_base, unsigned short bus_type) | 9541 | unsigned short bus_type) |
9542 | { | 9542 | { |
9543 | unsigned short cfg_lsw; | 9543 | unsigned short cfg_lsw; |
9544 | unsigned short bios_addr; | 9544 | unsigned short bios_addr; |
@@ -9569,7 +9569,7 @@ AscGetChipBiosAddress(PortAddr iop_base, unsigned short bus_type) | |||
9569 | return bios_addr; | 9569 | return bios_addr; |
9570 | } | 9570 | } |
9571 | 9571 | ||
9572 | static uchar __devinit AscSetChipScsiID(PortAddr iop_base, uchar new_host_id) | 9572 | static uchar AscSetChipScsiID(PortAddr iop_base, uchar new_host_id) |
9573 | { | 9573 | { |
9574 | ushort cfg_lsw; | 9574 | ushort cfg_lsw; |
9575 | 9575 | ||
@@ -9583,7 +9583,7 @@ static uchar __devinit AscSetChipScsiID(PortAddr iop_base, uchar new_host_id) | |||
9583 | return (AscGetChipScsiID(iop_base)); | 9583 | return (AscGetChipScsiID(iop_base)); |
9584 | } | 9584 | } |
9585 | 9585 | ||
9586 | static unsigned char __devinit AscGetChipScsiCtrl(PortAddr iop_base) | 9586 | static unsigned char AscGetChipScsiCtrl(PortAddr iop_base) |
9587 | { | 9587 | { |
9588 | unsigned char sc; | 9588 | unsigned char sc; |
9589 | 9589 | ||
@@ -9593,8 +9593,8 @@ static unsigned char __devinit AscGetChipScsiCtrl(PortAddr iop_base) | |||
9593 | return sc; | 9593 | return sc; |
9594 | } | 9594 | } |
9595 | 9595 | ||
9596 | static unsigned char __devinit | 9596 | static unsigned char AscGetChipVersion(PortAddr iop_base, |
9597 | AscGetChipVersion(PortAddr iop_base, unsigned short bus_type) | 9597 | unsigned short bus_type) |
9598 | { | 9598 | { |
9599 | if (bus_type & ASC_IS_EISA) { | 9599 | if (bus_type & ASC_IS_EISA) { |
9600 | PortAddr eisa_iop; | 9600 | PortAddr eisa_iop; |
@@ -9608,7 +9608,7 @@ AscGetChipVersion(PortAddr iop_base, unsigned short bus_type) | |||
9608 | } | 9608 | } |
9609 | 9609 | ||
9610 | #ifdef CONFIG_ISA | 9610 | #ifdef CONFIG_ISA |
9611 | static void __devinit AscEnableIsaDma(uchar dma_channel) | 9611 | static void AscEnableIsaDma(uchar dma_channel) |
9612 | { | 9612 | { |
9613 | if (dma_channel < 4) { | 9613 | if (dma_channel < 4) { |
9614 | outp(0x000B, (ushort)(0xC0 | dma_channel)); | 9614 | outp(0x000B, (ushort)(0xC0 | dma_channel)); |
@@ -9638,7 +9638,7 @@ static int AscStopQueueExe(PortAddr iop_base) | |||
9638 | return (0); | 9638 | return (0); |
9639 | } | 9639 | } |
9640 | 9640 | ||
9641 | static ASC_DCNT __devinit AscGetMaxDmaCount(ushort bus_type) | 9641 | static ASC_DCNT AscGetMaxDmaCount(ushort bus_type) |
9642 | { | 9642 | { |
9643 | if (bus_type & ASC_IS_ISA) | 9643 | if (bus_type & ASC_IS_ISA) |
9644 | return ASC_MAX_ISA_DMA_COUNT; | 9644 | return ASC_MAX_ISA_DMA_COUNT; |
@@ -9648,7 +9648,7 @@ static ASC_DCNT __devinit AscGetMaxDmaCount(ushort bus_type) | |||
9648 | } | 9648 | } |
9649 | 9649 | ||
9650 | #ifdef CONFIG_ISA | 9650 | #ifdef CONFIG_ISA |
9651 | static ushort __devinit AscGetIsaDmaChannel(PortAddr iop_base) | 9651 | static ushort AscGetIsaDmaChannel(PortAddr iop_base) |
9652 | { | 9652 | { |
9653 | ushort channel; | 9653 | ushort channel; |
9654 | 9654 | ||
@@ -9660,7 +9660,7 @@ static ushort __devinit AscGetIsaDmaChannel(PortAddr iop_base) | |||
9660 | return (channel + 4); | 9660 | return (channel + 4); |
9661 | } | 9661 | } |
9662 | 9662 | ||
9663 | static ushort __devinit AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channel) | 9663 | static ushort AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channel) |
9664 | { | 9664 | { |
9665 | ushort cfg_lsw; | 9665 | ushort cfg_lsw; |
9666 | uchar value; | 9666 | uchar value; |
@@ -9678,7 +9678,7 @@ static ushort __devinit AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channe | |||
9678 | return 0; | 9678 | return 0; |
9679 | } | 9679 | } |
9680 | 9680 | ||
9681 | static uchar __devinit AscGetIsaDmaSpeed(PortAddr iop_base) | 9681 | static uchar AscGetIsaDmaSpeed(PortAddr iop_base) |
9682 | { | 9682 | { |
9683 | uchar speed_value; | 9683 | uchar speed_value; |
9684 | 9684 | ||
@@ -9689,7 +9689,7 @@ static uchar __devinit AscGetIsaDmaSpeed(PortAddr iop_base) | |||
9689 | return speed_value; | 9689 | return speed_value; |
9690 | } | 9690 | } |
9691 | 9691 | ||
9692 | static uchar __devinit AscSetIsaDmaSpeed(PortAddr iop_base, uchar speed_value) | 9692 | static uchar AscSetIsaDmaSpeed(PortAddr iop_base, uchar speed_value) |
9693 | { | 9693 | { |
9694 | speed_value &= 0x07; | 9694 | speed_value &= 0x07; |
9695 | AscSetBank(iop_base, 1); | 9695 | AscSetBank(iop_base, 1); |
@@ -9699,7 +9699,7 @@ static uchar __devinit AscSetIsaDmaSpeed(PortAddr iop_base, uchar speed_value) | |||
9699 | } | 9699 | } |
9700 | #endif /* CONFIG_ISA */ | 9700 | #endif /* CONFIG_ISA */ |
9701 | 9701 | ||
9702 | static ushort __devinit AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc) | 9702 | static ushort AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc) |
9703 | { | 9703 | { |
9704 | int i; | 9704 | int i; |
9705 | PortAddr iop_base; | 9705 | PortAddr iop_base; |
@@ -9786,7 +9786,7 @@ static ushort __devinit AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc) | |||
9786 | return warn_code; | 9786 | return warn_code; |
9787 | } | 9787 | } |
9788 | 9788 | ||
9789 | static int __devinit AscWriteEEPCmdReg(PortAddr iop_base, uchar cmd_reg) | 9789 | static int AscWriteEEPCmdReg(PortAddr iop_base, uchar cmd_reg) |
9790 | { | 9790 | { |
9791 | int retry; | 9791 | int retry; |
9792 | 9792 | ||
@@ -9801,12 +9801,12 @@ static int __devinit AscWriteEEPCmdReg(PortAddr iop_base, uchar cmd_reg) | |||
9801 | return 0; | 9801 | return 0; |
9802 | } | 9802 | } |
9803 | 9803 | ||
9804 | static void __devinit AscWaitEEPRead(void) | 9804 | static void AscWaitEEPRead(void) |
9805 | { | 9805 | { |
9806 | mdelay(1); | 9806 | mdelay(1); |
9807 | } | 9807 | } |
9808 | 9808 | ||
9809 | static ushort __devinit AscReadEEPWord(PortAddr iop_base, uchar addr) | 9809 | static ushort AscReadEEPWord(PortAddr iop_base, uchar addr) |
9810 | { | 9810 | { |
9811 | ushort read_wval; | 9811 | ushort read_wval; |
9812 | uchar cmd_reg; | 9812 | uchar cmd_reg; |
@@ -9821,8 +9821,8 @@ static ushort __devinit AscReadEEPWord(PortAddr iop_base, uchar addr) | |||
9821 | return read_wval; | 9821 | return read_wval; |
9822 | } | 9822 | } |
9823 | 9823 | ||
9824 | static ushort __devinit | 9824 | static ushort AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, |
9825 | AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) | 9825 | ushort bus_type) |
9826 | { | 9826 | { |
9827 | ushort wval; | 9827 | ushort wval; |
9828 | ushort sum; | 9828 | ushort sum; |
@@ -9868,7 +9868,7 @@ AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) | |||
9868 | return sum; | 9868 | return sum; |
9869 | } | 9869 | } |
9870 | 9870 | ||
9871 | static int __devinit AscTestExternalLram(ASC_DVC_VAR *asc_dvc) | 9871 | static int AscTestExternalLram(ASC_DVC_VAR *asc_dvc) |
9872 | { | 9872 | { |
9873 | PortAddr iop_base; | 9873 | PortAddr iop_base; |
9874 | ushort q_addr; | 9874 | ushort q_addr; |
@@ -9890,12 +9890,12 @@ static int __devinit AscTestExternalLram(ASC_DVC_VAR *asc_dvc) | |||
9890 | return (sta); | 9890 | return (sta); |
9891 | } | 9891 | } |
9892 | 9892 | ||
9893 | static void __devinit AscWaitEEPWrite(void) | 9893 | static void AscWaitEEPWrite(void) |
9894 | { | 9894 | { |
9895 | mdelay(20); | 9895 | mdelay(20); |
9896 | } | 9896 | } |
9897 | 9897 | ||
9898 | static int __devinit AscWriteEEPDataReg(PortAddr iop_base, ushort data_reg) | 9898 | static int AscWriteEEPDataReg(PortAddr iop_base, ushort data_reg) |
9899 | { | 9899 | { |
9900 | ushort read_back; | 9900 | ushort read_back; |
9901 | int retry; | 9901 | int retry; |
@@ -9914,8 +9914,7 @@ static int __devinit AscWriteEEPDataReg(PortAddr iop_base, ushort data_reg) | |||
9914 | } | 9914 | } |
9915 | } | 9915 | } |
9916 | 9916 | ||
9917 | static ushort __devinit | 9917 | static ushort AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val) |
9918 | AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val) | ||
9919 | { | 9918 | { |
9920 | ushort read_wval; | 9919 | ushort read_wval; |
9921 | 9920 | ||
@@ -9935,8 +9934,8 @@ AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val) | |||
9935 | return (read_wval); | 9934 | return (read_wval); |
9936 | } | 9935 | } |
9937 | 9936 | ||
9938 | static int __devinit | 9937 | static int AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, |
9939 | AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) | 9938 | ushort bus_type) |
9940 | { | 9939 | { |
9941 | int n_error; | 9940 | int n_error; |
9942 | ushort *wbuf; | 9941 | ushort *wbuf; |
@@ -10031,8 +10030,8 @@ AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) | |||
10031 | return n_error; | 10030 | return n_error; |
10032 | } | 10031 | } |
10033 | 10032 | ||
10034 | static int __devinit | 10033 | static int AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, |
10035 | AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) | 10034 | ushort bus_type) |
10036 | { | 10035 | { |
10037 | int retry; | 10036 | int retry; |
10038 | int n_error; | 10037 | int n_error; |
@@ -10050,7 +10049,7 @@ AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) | |||
10050 | return n_error; | 10049 | return n_error; |
10051 | } | 10050 | } |
10052 | 10051 | ||
10053 | static ushort __devinit AscInitFromEEP(ASC_DVC_VAR *asc_dvc) | 10052 | static ushort AscInitFromEEP(ASC_DVC_VAR *asc_dvc) |
10054 | { | 10053 | { |
10055 | ASCEEP_CONFIG eep_config_buf; | 10054 | ASCEEP_CONFIG eep_config_buf; |
10056 | ASCEEP_CONFIG *eep_config; | 10055 | ASCEEP_CONFIG *eep_config; |
@@ -10215,7 +10214,7 @@ static ushort __devinit AscInitFromEEP(ASC_DVC_VAR *asc_dvc) | |||
10215 | return (warn_code); | 10214 | return (warn_code); |
10216 | } | 10215 | } |
10217 | 10216 | ||
10218 | static int __devinit AscInitGetConfig(struct Scsi_Host *shost) | 10217 | static int AscInitGetConfig(struct Scsi_Host *shost) |
10219 | { | 10218 | { |
10220 | struct asc_board *board = shost_priv(shost); | 10219 | struct asc_board *board = shost_priv(shost); |
10221 | ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var; | 10220 | ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var; |
@@ -10269,7 +10268,7 @@ static int __devinit AscInitGetConfig(struct Scsi_Host *shost) | |||
10269 | return asc_dvc->err_code; | 10268 | return asc_dvc->err_code; |
10270 | } | 10269 | } |
10271 | 10270 | ||
10272 | static int __devinit AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) | 10271 | static int AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) |
10273 | { | 10272 | { |
10274 | struct asc_board *board = shost_priv(shost); | 10273 | struct asc_board *board = shost_priv(shost); |
10275 | ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var; | 10274 | ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var; |
@@ -10383,7 +10382,7 @@ static int __devinit AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *sh | |||
10383 | * on big-endian platforms so char fields read as words are actually being | 10382 | * on big-endian platforms so char fields read as words are actually being |
10384 | * unswapped on big-endian platforms. | 10383 | * unswapped on big-endian platforms. |
10385 | */ | 10384 | */ |
10386 | static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config __devinitdata = { | 10385 | static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config = { |
10387 | ADV_EEPROM_BIOS_ENABLE, /* cfg_lsw */ | 10386 | ADV_EEPROM_BIOS_ENABLE, /* cfg_lsw */ |
10388 | 0x0000, /* cfg_msw */ | 10387 | 0x0000, /* cfg_msw */ |
10389 | 0xFFFF, /* disc_enable */ | 10388 | 0xFFFF, /* disc_enable */ |
@@ -10421,7 +10420,7 @@ static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config __devinitdata = { | |||
10421 | 0 /* num_of_err */ | 10420 | 0 /* num_of_err */ |
10422 | }; | 10421 | }; |
10423 | 10422 | ||
10424 | static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar __devinitdata = { | 10423 | static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar = { |
10425 | 0, /* cfg_lsw */ | 10424 | 0, /* cfg_lsw */ |
10426 | 0, /* cfg_msw */ | 10425 | 0, /* cfg_msw */ |
10427 | 0, /* -disc_enable */ | 10426 | 0, /* -disc_enable */ |
@@ -10459,7 +10458,7 @@ static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar __devinitdata = { | |||
10459 | 0 /* num_of_err */ | 10458 | 0 /* num_of_err */ |
10460 | }; | 10459 | }; |
10461 | 10460 | ||
10462 | static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config __devinitdata = { | 10461 | static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config = { |
10463 | ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ | 10462 | ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ |
10464 | 0x0000, /* 01 cfg_msw */ | 10463 | 0x0000, /* 01 cfg_msw */ |
10465 | 0xFFFF, /* 02 disc_enable */ | 10464 | 0xFFFF, /* 02 disc_enable */ |
@@ -10524,7 +10523,7 @@ static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config __devinitdata = { | |||
10524 | 0 /* 63 reserved */ | 10523 | 0 /* 63 reserved */ |
10525 | }; | 10524 | }; |
10526 | 10525 | ||
10527 | static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar __devinitdata = { | 10526 | static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar = { |
10528 | 0, /* 00 cfg_lsw */ | 10527 | 0, /* 00 cfg_lsw */ |
10529 | 0, /* 01 cfg_msw */ | 10528 | 0, /* 01 cfg_msw */ |
10530 | 0, /* 02 disc_enable */ | 10529 | 0, /* 02 disc_enable */ |
@@ -10589,7 +10588,7 @@ static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar __devinitdata = | |||
10589 | 0 /* 63 reserved */ | 10588 | 0 /* 63 reserved */ |
10590 | }; | 10589 | }; |
10591 | 10590 | ||
10592 | static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config __devinitdata = { | 10591 | static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config = { |
10593 | ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ | 10592 | ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ |
10594 | 0x0000, /* 01 cfg_msw */ | 10593 | 0x0000, /* 01 cfg_msw */ |
10595 | 0xFFFF, /* 02 disc_enable */ | 10594 | 0xFFFF, /* 02 disc_enable */ |
@@ -10654,7 +10653,7 @@ static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config __devinitdata = { | |||
10654 | 0 /* 63 reserved */ | 10653 | 0 /* 63 reserved */ |
10655 | }; | 10654 | }; |
10656 | 10655 | ||
10657 | static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar __devinitdata = { | 10656 | static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar = { |
10658 | 0, /* 00 cfg_lsw */ | 10657 | 0, /* 00 cfg_lsw */ |
10659 | 0, /* 01 cfg_msw */ | 10658 | 0, /* 01 cfg_msw */ |
10660 | 0, /* 02 disc_enable */ | 10659 | 0, /* 02 disc_enable */ |
@@ -10723,7 +10722,7 @@ static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar __devinitdata = | |||
10723 | /* | 10722 | /* |
10724 | * Wait for EEPROM command to complete | 10723 | * Wait for EEPROM command to complete |
10725 | */ | 10724 | */ |
10726 | static void __devinit AdvWaitEEPCmd(AdvPortAddr iop_base) | 10725 | static void AdvWaitEEPCmd(AdvPortAddr iop_base) |
10727 | { | 10726 | { |
10728 | int eep_delay_ms; | 10727 | int eep_delay_ms; |
10729 | 10728 | ||
@@ -10742,7 +10741,7 @@ static void __devinit AdvWaitEEPCmd(AdvPortAddr iop_base) | |||
10742 | /* | 10741 | /* |
10743 | * Read the EEPROM from specified location | 10742 | * Read the EEPROM from specified location |
10744 | */ | 10743 | */ |
10745 | static ushort __devinit AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr) | 10744 | static ushort AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr) |
10746 | { | 10745 | { |
10747 | AdvWriteWordRegister(iop_base, IOPW_EE_CMD, | 10746 | AdvWriteWordRegister(iop_base, IOPW_EE_CMD, |
10748 | ASC_EEP_CMD_READ | eep_word_addr); | 10747 | ASC_EEP_CMD_READ | eep_word_addr); |
@@ -10753,8 +10752,8 @@ static ushort __devinit AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr) | |||
10753 | /* | 10752 | /* |
10754 | * Write the EEPROM from 'cfg_buf'. | 10753 | * Write the EEPROM from 'cfg_buf'. |
10755 | */ | 10754 | */ |
10756 | static void __devinit | 10755 | static void AdvSet3550EEPConfig(AdvPortAddr iop_base, |
10757 | AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) | 10756 | ADVEEP_3550_CONFIG *cfg_buf) |
10758 | { | 10757 | { |
10759 | ushort *wbuf; | 10758 | ushort *wbuf; |
10760 | ushort addr, chksum; | 10759 | ushort addr, chksum; |
@@ -10820,8 +10819,8 @@ AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) | |||
10820 | /* | 10819 | /* |
10821 | * Write the EEPROM from 'cfg_buf'. | 10820 | * Write the EEPROM from 'cfg_buf'. |
10822 | */ | 10821 | */ |
10823 | static void __devinit | 10822 | static void AdvSet38C0800EEPConfig(AdvPortAddr iop_base, |
10824 | AdvSet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf) | 10823 | ADVEEP_38C0800_CONFIG *cfg_buf) |
10825 | { | 10824 | { |
10826 | ushort *wbuf; | 10825 | ushort *wbuf; |
10827 | ushort *charfields; | 10826 | ushort *charfields; |
@@ -10887,8 +10886,8 @@ AdvSet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf) | |||
10887 | /* | 10886 | /* |
10888 | * Write the EEPROM from 'cfg_buf'. | 10887 | * Write the EEPROM from 'cfg_buf'. |
10889 | */ | 10888 | */ |
10890 | static void __devinit | 10889 | static void AdvSet38C1600EEPConfig(AdvPortAddr iop_base, |
10891 | AdvSet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf) | 10890 | ADVEEP_38C1600_CONFIG *cfg_buf) |
10892 | { | 10891 | { |
10893 | ushort *wbuf; | 10892 | ushort *wbuf; |
10894 | ushort *charfields; | 10893 | ushort *charfields; |
@@ -10956,8 +10955,8 @@ AdvSet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf) | |||
10956 | * | 10955 | * |
10957 | * Return a checksum based on the EEPROM configuration read. | 10956 | * Return a checksum based on the EEPROM configuration read. |
10958 | */ | 10957 | */ |
10959 | static ushort __devinit | 10958 | static ushort AdvGet3550EEPConfig(AdvPortAddr iop_base, |
10960 | AdvGet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) | 10959 | ADVEEP_3550_CONFIG *cfg_buf) |
10961 | { | 10960 | { |
10962 | ushort wval, chksum; | 10961 | ushort wval, chksum; |
10963 | ushort *wbuf; | 10962 | ushort *wbuf; |
@@ -10999,8 +10998,8 @@ AdvGet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) | |||
10999 | * | 10998 | * |
11000 | * Return a checksum based on the EEPROM configuration read. | 10999 | * Return a checksum based on the EEPROM configuration read. |
11001 | */ | 11000 | */ |
11002 | static ushort __devinit | 11001 | static ushort AdvGet38C0800EEPConfig(AdvPortAddr iop_base, |
11003 | AdvGet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf) | 11002 | ADVEEP_38C0800_CONFIG *cfg_buf) |
11004 | { | 11003 | { |
11005 | ushort wval, chksum; | 11004 | ushort wval, chksum; |
11006 | ushort *wbuf; | 11005 | ushort *wbuf; |
@@ -11042,8 +11041,8 @@ AdvGet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf) | |||
11042 | * | 11041 | * |
11043 | * Return a checksum based on the EEPROM configuration read. | 11042 | * Return a checksum based on the EEPROM configuration read. |
11044 | */ | 11043 | */ |
11045 | static ushort __devinit | 11044 | static ushort AdvGet38C1600EEPConfig(AdvPortAddr iop_base, |
11046 | AdvGet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf) | 11045 | ADVEEP_38C1600_CONFIG *cfg_buf) |
11047 | { | 11046 | { |
11048 | ushort wval, chksum; | 11047 | ushort wval, chksum; |
11049 | ushort *wbuf; | 11048 | ushort *wbuf; |
@@ -11092,7 +11091,7 @@ AdvGet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf) | |||
11092 | * | 11091 | * |
11093 | * Note: Chip is stopped on entry. | 11092 | * Note: Chip is stopped on entry. |
11094 | */ | 11093 | */ |
11095 | static int __devinit AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc) | 11094 | static int AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc) |
11096 | { | 11095 | { |
11097 | AdvPortAddr iop_base; | 11096 | AdvPortAddr iop_base; |
11098 | ushort warn_code; | 11097 | ushort warn_code; |
@@ -11242,7 +11241,7 @@ static int __devinit AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc) | |||
11242 | * | 11241 | * |
11243 | * Note: Chip is stopped on entry. | 11242 | * Note: Chip is stopped on entry. |
11244 | */ | 11243 | */ |
11245 | static int __devinit AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc) | 11244 | static int AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc) |
11246 | { | 11245 | { |
11247 | AdvPortAddr iop_base; | 11246 | AdvPortAddr iop_base; |
11248 | ushort warn_code; | 11247 | ushort warn_code; |
@@ -11441,7 +11440,7 @@ static int __devinit AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc) | |||
11441 | * | 11440 | * |
11442 | * Note: Chip is stopped on entry. | 11441 | * Note: Chip is stopped on entry. |
11443 | */ | 11442 | */ |
11444 | static int __devinit AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc) | 11443 | static int AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc) |
11445 | { | 11444 | { |
11446 | AdvPortAddr iop_base; | 11445 | AdvPortAddr iop_base; |
11447 | ushort warn_code; | 11446 | ushort warn_code; |
@@ -11661,8 +11660,7 @@ static int __devinit AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc) | |||
11661 | * For a non-fatal error return a warning code. If there are no warnings | 11660 | * For a non-fatal error return a warning code. If there are no warnings |
11662 | * then 0 is returned. | 11661 | * then 0 is returned. |
11663 | */ | 11662 | */ |
11664 | static int __devinit | 11663 | static int AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) |
11665 | AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) | ||
11666 | { | 11664 | { |
11667 | struct asc_board *board = shost_priv(shost); | 11665 | struct asc_board *board = shost_priv(shost); |
11668 | ADV_DVC_VAR *asc_dvc = &board->dvc_var.adv_dvc_var; | 11666 | ADV_DVC_VAR *asc_dvc = &board->dvc_var.adv_dvc_var; |
@@ -11769,7 +11767,7 @@ static struct scsi_host_template advansys_template = { | |||
11769 | .use_clustering = ENABLE_CLUSTERING, | 11767 | .use_clustering = ENABLE_CLUSTERING, |
11770 | }; | 11768 | }; |
11771 | 11769 | ||
11772 | static int __devinit advansys_wide_init_chip(struct Scsi_Host *shost) | 11770 | static int advansys_wide_init_chip(struct Scsi_Host *shost) |
11773 | { | 11771 | { |
11774 | struct asc_board *board = shost_priv(shost); | 11772 | struct asc_board *board = shost_priv(shost); |
11775 | struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var; | 11773 | struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var; |
@@ -11882,8 +11880,8 @@ static void advansys_wide_free_mem(struct asc_board *board) | |||
11882 | } | 11880 | } |
11883 | } | 11881 | } |
11884 | 11882 | ||
11885 | static int __devinit advansys_board_found(struct Scsi_Host *shost, | 11883 | static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop, |
11886 | unsigned int iop, int bus_type) | 11884 | int bus_type) |
11887 | { | 11885 | { |
11888 | struct pci_dev *pdev; | 11886 | struct pci_dev *pdev; |
11889 | struct asc_board *boardp = shost_priv(shost); | 11887 | struct asc_board *boardp = shost_priv(shost); |
@@ -12428,7 +12426,7 @@ static PortAddr _asc_def_iop_base[ASC_IOADR_TABLE_MAX_IX] = { | |||
12428 | * 10: 12 | 12426 | * 10: 12 |
12429 | * 11: 15 | 12427 | * 11: 15 |
12430 | */ | 12428 | */ |
12431 | static unsigned int __devinit advansys_isa_irq_no(PortAddr iop_base) | 12429 | static unsigned int advansys_isa_irq_no(PortAddr iop_base) |
12432 | { | 12430 | { |
12433 | unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base); | 12431 | unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base); |
12434 | unsigned int chip_irq = ((cfg_lsw >> 2) & 0x03) + 10; | 12432 | unsigned int chip_irq = ((cfg_lsw >> 2) & 0x03) + 10; |
@@ -12437,7 +12435,7 @@ static unsigned int __devinit advansys_isa_irq_no(PortAddr iop_base) | |||
12437 | return chip_irq; | 12435 | return chip_irq; |
12438 | } | 12436 | } |
12439 | 12437 | ||
12440 | static int __devinit advansys_isa_probe(struct device *dev, unsigned int id) | 12438 | static int advansys_isa_probe(struct device *dev, unsigned int id) |
12441 | { | 12439 | { |
12442 | int err = -ENODEV; | 12440 | int err = -ENODEV; |
12443 | PortAddr iop_base = _asc_def_iop_base[id]; | 12441 | PortAddr iop_base = _asc_def_iop_base[id]; |
@@ -12477,7 +12475,7 @@ static int __devinit advansys_isa_probe(struct device *dev, unsigned int id) | |||
12477 | return err; | 12475 | return err; |
12478 | } | 12476 | } |
12479 | 12477 | ||
12480 | static int __devexit advansys_isa_remove(struct device *dev, unsigned int id) | 12478 | static int advansys_isa_remove(struct device *dev, unsigned int id) |
12481 | { | 12479 | { |
12482 | int ioport = _asc_def_iop_base[id]; | 12480 | int ioport = _asc_def_iop_base[id]; |
12483 | advansys_release(dev_get_drvdata(dev)); | 12481 | advansys_release(dev_get_drvdata(dev)); |
@@ -12487,7 +12485,7 @@ static int __devexit advansys_isa_remove(struct device *dev, unsigned int id) | |||
12487 | 12485 | ||
12488 | static struct isa_driver advansys_isa_driver = { | 12486 | static struct isa_driver advansys_isa_driver = { |
12489 | .probe = advansys_isa_probe, | 12487 | .probe = advansys_isa_probe, |
12490 | .remove = __devexit_p(advansys_isa_remove), | 12488 | .remove = advansys_isa_remove, |
12491 | .driver = { | 12489 | .driver = { |
12492 | .owner = THIS_MODULE, | 12490 | .owner = THIS_MODULE, |
12493 | .name = DRV_NAME, | 12491 | .name = DRV_NAME, |
@@ -12505,7 +12503,7 @@ static struct isa_driver advansys_isa_driver = { | |||
12505 | * 110: 15 | 12503 | * 110: 15 |
12506 | * 111: invalid | 12504 | * 111: invalid |
12507 | */ | 12505 | */ |
12508 | static unsigned int __devinit advansys_vlb_irq_no(PortAddr iop_base) | 12506 | static unsigned int advansys_vlb_irq_no(PortAddr iop_base) |
12509 | { | 12507 | { |
12510 | unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base); | 12508 | unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base); |
12511 | unsigned int chip_irq = ((cfg_lsw >> 2) & 0x07) + 9; | 12509 | unsigned int chip_irq = ((cfg_lsw >> 2) & 0x07) + 9; |
@@ -12514,7 +12512,7 @@ static unsigned int __devinit advansys_vlb_irq_no(PortAddr iop_base) | |||
12514 | return chip_irq; | 12512 | return chip_irq; |
12515 | } | 12513 | } |
12516 | 12514 | ||
12517 | static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id) | 12515 | static int advansys_vlb_probe(struct device *dev, unsigned int id) |
12518 | { | 12516 | { |
12519 | int err = -ENODEV; | 12517 | int err = -ENODEV; |
12520 | PortAddr iop_base = _asc_def_iop_base[id]; | 12518 | PortAddr iop_base = _asc_def_iop_base[id]; |
@@ -12561,14 +12559,14 @@ static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id) | |||
12561 | 12559 | ||
12562 | static struct isa_driver advansys_vlb_driver = { | 12560 | static struct isa_driver advansys_vlb_driver = { |
12563 | .probe = advansys_vlb_probe, | 12561 | .probe = advansys_vlb_probe, |
12564 | .remove = __devexit_p(advansys_isa_remove), | 12562 | .remove = advansys_isa_remove, |
12565 | .driver = { | 12563 | .driver = { |
12566 | .owner = THIS_MODULE, | 12564 | .owner = THIS_MODULE, |
12567 | .name = "advansys_vlb", | 12565 | .name = "advansys_vlb", |
12568 | }, | 12566 | }, |
12569 | }; | 12567 | }; |
12570 | 12568 | ||
12571 | static struct eisa_device_id advansys_eisa_table[] __devinitdata = { | 12569 | static struct eisa_device_id advansys_eisa_table[] = { |
12572 | { "ABP7401" }, | 12570 | { "ABP7401" }, |
12573 | { "ABP7501" }, | 12571 | { "ABP7501" }, |
12574 | { "" } | 12572 | { "" } |
@@ -12595,7 +12593,7 @@ struct eisa_scsi_data { | |||
12595 | * 110: invalid | 12593 | * 110: invalid |
12596 | * 111: invalid | 12594 | * 111: invalid |
12597 | */ | 12595 | */ |
12598 | static unsigned int __devinit advansys_eisa_irq_no(struct eisa_device *edev) | 12596 | static unsigned int advansys_eisa_irq_no(struct eisa_device *edev) |
12599 | { | 12597 | { |
12600 | unsigned short cfg_lsw = inw(edev->base_addr + 0xc86); | 12598 | unsigned short cfg_lsw = inw(edev->base_addr + 0xc86); |
12601 | unsigned int chip_irq = ((cfg_lsw >> 8) & 0x07) + 10; | 12599 | unsigned int chip_irq = ((cfg_lsw >> 8) & 0x07) + 10; |
@@ -12604,7 +12602,7 @@ static unsigned int __devinit advansys_eisa_irq_no(struct eisa_device *edev) | |||
12604 | return chip_irq; | 12602 | return chip_irq; |
12605 | } | 12603 | } |
12606 | 12604 | ||
12607 | static int __devinit advansys_eisa_probe(struct device *dev) | 12605 | static int advansys_eisa_probe(struct device *dev) |
12608 | { | 12606 | { |
12609 | int i, ioport, irq = 0; | 12607 | int i, ioport, irq = 0; |
12610 | int err; | 12608 | int err; |
@@ -12677,7 +12675,7 @@ static int __devinit advansys_eisa_probe(struct device *dev) | |||
12677 | return err; | 12675 | return err; |
12678 | } | 12676 | } |
12679 | 12677 | ||
12680 | static __devexit int advansys_eisa_remove(struct device *dev) | 12678 | static int advansys_eisa_remove(struct device *dev) |
12681 | { | 12679 | { |
12682 | int i; | 12680 | int i; |
12683 | struct eisa_scsi_data *data = dev_get_drvdata(dev); | 12681 | struct eisa_scsi_data *data = dev_get_drvdata(dev); |
@@ -12701,12 +12699,12 @@ static struct eisa_driver advansys_eisa_driver = { | |||
12701 | .driver = { | 12699 | .driver = { |
12702 | .name = DRV_NAME, | 12700 | .name = DRV_NAME, |
12703 | .probe = advansys_eisa_probe, | 12701 | .probe = advansys_eisa_probe, |
12704 | .remove = __devexit_p(advansys_eisa_remove), | 12702 | .remove = advansys_eisa_remove, |
12705 | } | 12703 | } |
12706 | }; | 12704 | }; |
12707 | 12705 | ||
12708 | /* PCI Devices supported by this driver */ | 12706 | /* PCI Devices supported by this driver */ |
12709 | static struct pci_device_id advansys_pci_tbl[] __devinitdata = { | 12707 | static struct pci_device_id advansys_pci_tbl[] = { |
12710 | {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_1200A, | 12708 | {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_1200A, |
12711 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, | 12709 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, |
12712 | {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_ABP940, | 12710 | {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_ABP940, |
@@ -12724,7 +12722,7 @@ static struct pci_device_id advansys_pci_tbl[] __devinitdata = { | |||
12724 | 12722 | ||
12725 | MODULE_DEVICE_TABLE(pci, advansys_pci_tbl); | 12723 | MODULE_DEVICE_TABLE(pci, advansys_pci_tbl); |
12726 | 12724 | ||
12727 | static void __devinit advansys_set_latency(struct pci_dev *pdev) | 12725 | static void advansys_set_latency(struct pci_dev *pdev) |
12728 | { | 12726 | { |
12729 | if ((pdev->device == PCI_DEVICE_ID_ASP_1200A) || | 12727 | if ((pdev->device == PCI_DEVICE_ID_ASP_1200A) || |
12730 | (pdev->device == PCI_DEVICE_ID_ASP_ABP940)) { | 12728 | (pdev->device == PCI_DEVICE_ID_ASP_ABP940)) { |
@@ -12737,8 +12735,8 @@ static void __devinit advansys_set_latency(struct pci_dev *pdev) | |||
12737 | } | 12735 | } |
12738 | } | 12736 | } |
12739 | 12737 | ||
12740 | static int __devinit | 12738 | static int advansys_pci_probe(struct pci_dev *pdev, |
12741 | advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 12739 | const struct pci_device_id *ent) |
12742 | { | 12740 | { |
12743 | int err, ioport; | 12741 | int err, ioport; |
12744 | struct Scsi_Host *shost; | 12742 | struct Scsi_Host *shost; |
@@ -12791,7 +12789,7 @@ advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
12791 | return err; | 12789 | return err; |
12792 | } | 12790 | } |
12793 | 12791 | ||
12794 | static void __devexit advansys_pci_remove(struct pci_dev *pdev) | 12792 | static void advansys_pci_remove(struct pci_dev *pdev) |
12795 | { | 12793 | { |
12796 | advansys_release(pci_get_drvdata(pdev)); | 12794 | advansys_release(pci_get_drvdata(pdev)); |
12797 | pci_release_regions(pdev); | 12795 | pci_release_regions(pdev); |
@@ -12802,7 +12800,7 @@ static struct pci_driver advansys_pci_driver = { | |||
12802 | .name = DRV_NAME, | 12800 | .name = DRV_NAME, |
12803 | .id_table = advansys_pci_tbl, | 12801 | .id_table = advansys_pci_tbl, |
12804 | .probe = advansys_pci_probe, | 12802 | .probe = advansys_pci_probe, |
12805 | .remove = __devexit_p(advansys_pci_remove), | 12803 | .remove = advansys_pci_remove, |
12806 | }; | 12804 | }; |
12807 | 12805 | ||
12808 | static int __init advansys_init(void) | 12806 | static int __init advansys_init(void) |
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index dd4547bf6881..a284be17699f 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c | |||
@@ -420,7 +420,7 @@ MODULE_PARM_DESC(aha152x1, "parameters for second controller"); | |||
420 | #endif /* MODULE */ | 420 | #endif /* MODULE */ |
421 | 421 | ||
422 | #ifdef __ISAPNP__ | 422 | #ifdef __ISAPNP__ |
423 | static struct isapnp_device_id id_table[] __devinitdata = { | 423 | static struct isapnp_device_id id_table[] = { |
424 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1502), 0 }, | 424 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1502), 0 }, |
425 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1505), 0 }, | 425 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1505), 0 }, |
426 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1510), 0 }, | 426 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1510), 0 }, |
diff --git a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c index a3e6ed353917..df775e6ba579 100644 --- a/drivers/scsi/aha1740.c +++ b/drivers/scsi/aha1740.c | |||
@@ -646,7 +646,7 @@ static int aha1740_probe (struct device *dev) | |||
646 | return -ENODEV; | 646 | return -ENODEV; |
647 | } | 647 | } |
648 | 648 | ||
649 | static __devexit int aha1740_remove (struct device *dev) | 649 | static int aha1740_remove (struct device *dev) |
650 | { | 650 | { |
651 | struct Scsi_Host *shpnt = dev_get_drvdata(dev); | 651 | struct Scsi_Host *shpnt = dev_get_drvdata(dev); |
652 | struct aha1740_hostdata *host = HOSTDATA (shpnt); | 652 | struct aha1740_hostdata *host = HOSTDATA (shpnt); |
@@ -677,7 +677,7 @@ static struct eisa_driver aha1740_driver = { | |||
677 | .driver = { | 677 | .driver = { |
678 | .name = "aha1740", | 678 | .name = "aha1740", |
679 | .probe = aha1740_probe, | 679 | .probe = aha1740_probe, |
680 | .remove = __devexit_p (aha1740_remove), | 680 | .remove = aha1740_remove, |
681 | }, | 681 | }, |
682 | }; | 682 | }; |
683 | 683 | ||
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 | ||
88 | static int __devinit asd_map_memio(struct asd_ha_struct *asd_ha) | 88 | static 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 | ||
149 | static int __devinit asd_map_ioport(struct asd_ha_struct *asd_ha) | 149 | static 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 | ||
178 | static int __devinit asd_map_ha(struct asd_ha_struct *asd_ha) | 178 | static 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 | ||
224 | static int __devinit asd_common_setup(struct asd_ha_struct *asd_ha) | 224 | static 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 | ||
260 | static int __devinit asd_aic9410_setup(struct asd_ha_struct *asd_ha) | 260 | static 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 | ||
275 | static int __devinit asd_aic9405_setup(struct asd_ha_struct *asd_ha) | 275 | static 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) | |||
531 | static const struct asd_pcidev_struct { | 531 | static 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 | ||
734 | static int __devinit asd_pci_probe(struct pci_dev *dev, | 734 | static 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 | ||
927 | static void __devexit asd_pci_remove(struct pci_dev *dev) | 926 | static 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 | ||
1015 | static const struct pci_device_id aic94xx_pci_table[] __devinitconst = { | 1014 | static 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 | ||
1037 | static int __init aic94xx_init(void) | 1036 | static int __init aic94xx_init(void) |
diff --git a/drivers/scsi/arm/acornscsi.c b/drivers/scsi/arm/acornscsi.c index b330438ac662..3e1172adb37b 100644 --- a/drivers/scsi/arm/acornscsi.c +++ b/drivers/scsi/arm/acornscsi.c | |||
@@ -2965,8 +2965,7 @@ static struct scsi_host_template acornscsi_template = { | |||
2965 | .proc_name = "acornscsi", | 2965 | .proc_name = "acornscsi", |
2966 | }; | 2966 | }; |
2967 | 2967 | ||
2968 | static int __devinit | 2968 | static int acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
2969 | acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
2970 | { | 2969 | { |
2971 | struct Scsi_Host *host; | 2970 | struct Scsi_Host *host; |
2972 | AS_Host *ashost; | 2971 | AS_Host *ashost; |
@@ -3032,7 +3031,7 @@ acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
3032 | return ret; | 3031 | return ret; |
3033 | } | 3032 | } |
3034 | 3033 | ||
3035 | static void __devexit acornscsi_remove(struct expansion_card *ec) | 3034 | static void acornscsi_remove(struct expansion_card *ec) |
3036 | { | 3035 | { |
3037 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 3036 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
3038 | AS_Host *ashost = (AS_Host *)host->hostdata; | 3037 | AS_Host *ashost = (AS_Host *)host->hostdata; |
@@ -3063,7 +3062,7 @@ static const struct ecard_id acornscsi_cids[] = { | |||
3063 | 3062 | ||
3064 | static struct ecard_driver acornscsi_driver = { | 3063 | static struct ecard_driver acornscsi_driver = { |
3065 | .probe = acornscsi_probe, | 3064 | .probe = acornscsi_probe, |
3066 | .remove = __devexit_p(acornscsi_remove), | 3065 | .remove = acornscsi_remove, |
3067 | .id_table = acornscsi_cids, | 3066 | .id_table = acornscsi_cids, |
3068 | .drv = { | 3067 | .drv = { |
3069 | .name = "acornscsi", | 3068 | .name = "acornscsi", |
diff --git a/drivers/scsi/arm/arxescsi.c b/drivers/scsi/arm/arxescsi.c index 2a28b4ad1975..9274510294ac 100644 --- a/drivers/scsi/arm/arxescsi.c +++ b/drivers/scsi/arm/arxescsi.c | |||
@@ -276,8 +276,7 @@ static struct scsi_host_template arxescsi_template = { | |||
276 | .proc_name = "arxescsi", | 276 | .proc_name = "arxescsi", |
277 | }; | 277 | }; |
278 | 278 | ||
279 | static int __devinit | 279 | static int arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
280 | arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
281 | { | 280 | { |
282 | struct Scsi_Host *host; | 281 | struct Scsi_Host *host; |
283 | struct arxescsi_info *info; | 282 | struct arxescsi_info *info; |
@@ -340,7 +339,7 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
340 | return ret; | 339 | return ret; |
341 | } | 340 | } |
342 | 341 | ||
343 | static void __devexit arxescsi_remove(struct expansion_card *ec) | 342 | static void arxescsi_remove(struct expansion_card *ec) |
344 | { | 343 | { |
345 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 344 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
346 | 345 | ||
@@ -359,7 +358,7 @@ static const struct ecard_id arxescsi_cids[] = { | |||
359 | 358 | ||
360 | static struct ecard_driver arxescsi_driver = { | 359 | static struct ecard_driver arxescsi_driver = { |
361 | .probe = arxescsi_probe, | 360 | .probe = arxescsi_probe, |
362 | .remove = __devexit_p(arxescsi_remove), | 361 | .remove = arxescsi_remove, |
363 | .id_table = arxescsi_cids, | 362 | .id_table = arxescsi_cids, |
364 | .drv = { | 363 | .drv = { |
365 | .name = "arxescsi", | 364 | .name = "arxescsi", |
diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c index c3b99c93637a..c93938b246d5 100644 --- a/drivers/scsi/arm/cumana_1.c +++ b/drivers/scsi/arm/cumana_1.c | |||
@@ -225,8 +225,8 @@ static struct scsi_host_template cumanascsi_template = { | |||
225 | .proc_name = "CumanaSCSI-1", | 225 | .proc_name = "CumanaSCSI-1", |
226 | }; | 226 | }; |
227 | 227 | ||
228 | static int __devinit | 228 | static int cumanascsi1_probe(struct expansion_card *ec, |
229 | cumanascsi1_probe(struct expansion_card *ec, const struct ecard_id *id) | 229 | const struct ecard_id *id) |
230 | { | 230 | { |
231 | struct Scsi_Host *host; | 231 | struct Scsi_Host *host; |
232 | int ret; | 232 | int ret; |
@@ -298,7 +298,7 @@ cumanascsi1_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
298 | return ret; | 298 | return ret; |
299 | } | 299 | } |
300 | 300 | ||
301 | static void __devexit cumanascsi1_remove(struct expansion_card *ec) | 301 | static void cumanascsi1_remove(struct expansion_card *ec) |
302 | { | 302 | { |
303 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 303 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
304 | 304 | ||
@@ -320,7 +320,7 @@ static const struct ecard_id cumanascsi1_cids[] = { | |||
320 | 320 | ||
321 | static struct ecard_driver cumanascsi1_driver = { | 321 | static struct ecard_driver cumanascsi1_driver = { |
322 | .probe = cumanascsi1_probe, | 322 | .probe = cumanascsi1_probe, |
323 | .remove = __devexit_p(cumanascsi1_remove), | 323 | .remove = cumanascsi1_remove, |
324 | .id_table = cumanascsi1_cids, | 324 | .id_table = cumanascsi1_cids, |
325 | .drv = { | 325 | .drv = { |
326 | .name = "cumanascsi1", | 326 | .name = "cumanascsi1", |
diff --git a/drivers/scsi/arm/cumana_2.c b/drivers/scsi/arm/cumana_2.c index 547987b86384..e3bae93c3c22 100644 --- a/drivers/scsi/arm/cumana_2.c +++ b/drivers/scsi/arm/cumana_2.c | |||
@@ -397,8 +397,8 @@ static struct scsi_host_template cumanascsi2_template = { | |||
397 | .proc_name = "cumanascsi2", | 397 | .proc_name = "cumanascsi2", |
398 | }; | 398 | }; |
399 | 399 | ||
400 | static int __devinit | 400 | static int cumanascsi2_probe(struct expansion_card *ec, |
401 | cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id) | 401 | const struct ecard_id *id) |
402 | { | 402 | { |
403 | struct Scsi_Host *host; | 403 | struct Scsi_Host *host; |
404 | struct cumanascsi2_info *info; | 404 | struct cumanascsi2_info *info; |
@@ -495,7 +495,7 @@ cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
495 | return ret; | 495 | return ret; |
496 | } | 496 | } |
497 | 497 | ||
498 | static void __devexit cumanascsi2_remove(struct expansion_card *ec) | 498 | static void cumanascsi2_remove(struct expansion_card *ec) |
499 | { | 499 | { |
500 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 500 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
501 | struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; | 501 | struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; |
@@ -519,7 +519,7 @@ static const struct ecard_id cumanascsi2_cids[] = { | |||
519 | 519 | ||
520 | static struct ecard_driver cumanascsi2_driver = { | 520 | static struct ecard_driver cumanascsi2_driver = { |
521 | .probe = cumanascsi2_probe, | 521 | .probe = cumanascsi2_probe, |
522 | .remove = __devexit_p(cumanascsi2_remove), | 522 | .remove = cumanascsi2_remove, |
523 | .id_table = cumanascsi2_cids, | 523 | .id_table = cumanascsi2_cids, |
524 | .drv = { | 524 | .drv = { |
525 | .name = "cumanascsi2", | 525 | .name = "cumanascsi2", |
diff --git a/drivers/scsi/arm/eesox.c b/drivers/scsi/arm/eesox.c index 968d08358d20..8e36908415ec 100644 --- a/drivers/scsi/arm/eesox.c +++ b/drivers/scsi/arm/eesox.c | |||
@@ -515,8 +515,7 @@ static struct scsi_host_template eesox_template = { | |||
515 | .proc_name = "eesox", | 515 | .proc_name = "eesox", |
516 | }; | 516 | }; |
517 | 517 | ||
518 | static int __devinit | 518 | static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
519 | eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
520 | { | 519 | { |
521 | struct Scsi_Host *host; | 520 | struct Scsi_Host *host; |
522 | struct eesoxscsi_info *info; | 521 | struct eesoxscsi_info *info; |
@@ -617,7 +616,7 @@ eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
617 | return ret; | 616 | return ret; |
618 | } | 617 | } |
619 | 618 | ||
620 | static void __devexit eesoxscsi_remove(struct expansion_card *ec) | 619 | static void eesoxscsi_remove(struct expansion_card *ec) |
621 | { | 620 | { |
622 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 621 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
623 | struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; | 622 | struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; |
@@ -643,7 +642,7 @@ static const struct ecard_id eesoxscsi_cids[] = { | |||
643 | 642 | ||
644 | static struct ecard_driver eesoxscsi_driver = { | 643 | static struct ecard_driver eesoxscsi_driver = { |
645 | .probe = eesoxscsi_probe, | 644 | .probe = eesoxscsi_probe, |
646 | .remove = __devexit_p(eesoxscsi_remove), | 645 | .remove = eesoxscsi_remove, |
647 | .id_table = eesoxscsi_cids, | 646 | .id_table = eesoxscsi_cids, |
648 | .drv = { | 647 | .drv = { |
649 | .name = "eesoxscsi", | 648 | .name = "eesoxscsi", |
diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c index fc6a5aabf66e..48facdc18002 100644 --- a/drivers/scsi/arm/oak.c +++ b/drivers/scsi/arm/oak.c | |||
@@ -129,8 +129,7 @@ static struct scsi_host_template oakscsi_template = { | |||
129 | .proc_name = "oakscsi", | 129 | .proc_name = "oakscsi", |
130 | }; | 130 | }; |
131 | 131 | ||
132 | static int __devinit | 132 | static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) |
133 | oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | ||
134 | { | 133 | { |
135 | struct Scsi_Host *host; | 134 | struct Scsi_Host *host; |
136 | int ret = -ENOMEM; | 135 | int ret = -ENOMEM; |
@@ -182,7 +181,7 @@ oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
182 | return ret; | 181 | return ret; |
183 | } | 182 | } |
184 | 183 | ||
185 | static void __devexit oakscsi_remove(struct expansion_card *ec) | 184 | static void oakscsi_remove(struct expansion_card *ec) |
186 | { | 185 | { |
187 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 186 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
188 | 187 | ||
@@ -202,7 +201,7 @@ static const struct ecard_id oakscsi_cids[] = { | |||
202 | 201 | ||
203 | static struct ecard_driver oakscsi_driver = { | 202 | static struct ecard_driver oakscsi_driver = { |
204 | .probe = oakscsi_probe, | 203 | .probe = oakscsi_probe, |
205 | .remove = __devexit_p(oakscsi_remove), | 204 | .remove = oakscsi_remove, |
206 | .id_table = oakscsi_cids, | 205 | .id_table = oakscsi_cids, |
207 | .drv = { | 206 | .drv = { |
208 | .name = "oakscsi", | 207 | .name = "oakscsi", |
diff --git a/drivers/scsi/arm/powertec.c b/drivers/scsi/arm/powertec.c index 9274c0677b9c..246600b93555 100644 --- a/drivers/scsi/arm/powertec.c +++ b/drivers/scsi/arm/powertec.c | |||
@@ -309,8 +309,8 @@ static struct scsi_host_template powertecscsi_template = { | |||
309 | .proc_name = "powertec", | 309 | .proc_name = "powertec", |
310 | }; | 310 | }; |
311 | 311 | ||
312 | static int __devinit | 312 | static int powertecscsi_probe(struct expansion_card *ec, |
313 | powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | 313 | const struct ecard_id *id) |
314 | { | 314 | { |
315 | struct Scsi_Host *host; | 315 | struct Scsi_Host *host; |
316 | struct powertec_info *info; | 316 | struct powertec_info *info; |
@@ -409,7 +409,7 @@ powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
409 | return ret; | 409 | return ret; |
410 | } | 410 | } |
411 | 411 | ||
412 | static void __devexit powertecscsi_remove(struct expansion_card *ec) | 412 | static void powertecscsi_remove(struct expansion_card *ec) |
413 | { | 413 | { |
414 | struct Scsi_Host *host = ecard_get_drvdata(ec); | 414 | struct Scsi_Host *host = ecard_get_drvdata(ec); |
415 | struct powertec_info *info = (struct powertec_info *)host->hostdata; | 415 | struct powertec_info *info = (struct powertec_info *)host->hostdata; |
@@ -435,7 +435,7 @@ static const struct ecard_id powertecscsi_cids[] = { | |||
435 | 435 | ||
436 | static struct ecard_driver powertecscsi_driver = { | 436 | static struct ecard_driver powertecscsi_driver = { |
437 | .probe = powertecscsi_probe, | 437 | .probe = powertecscsi_probe, |
438 | .remove = __devexit_p(powertecscsi_remove), | 438 | .remove = powertecscsi_remove, |
439 | .id_table = powertecscsi_cids, | 439 | .id_table = powertecscsi_cids, |
440 | .drv = { | 440 | .drv = { |
441 | .name = "powertecscsi", | 441 | .name = "powertecscsi", |
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index a540162ac59c..cfc73041f102 100644 --- a/drivers/scsi/atp870u.c +++ b/drivers/scsi/atp870u.c | |||
@@ -3210,7 +3210,7 @@ static struct pci_driver atp870u_driver = { | |||
3210 | .id_table = atp870u_id_table, | 3210 | .id_table = atp870u_id_table, |
3211 | .name = "atp870u", | 3211 | .name = "atp870u", |
3212 | .probe = atp870u_probe, | 3212 | .probe = atp870u_probe, |
3213 | .remove = __devexit_p(atp870u_remove), | 3213 | .remove = atp870u_remove, |
3214 | }; | 3214 | }; |
3215 | 3215 | ||
3216 | static int __init atp870u_init(void) | 3216 | static int __init atp870u_init(void) |
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 48d37dded8f1..4e2733d23003 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c | |||
@@ -4790,8 +4790,8 @@ beiscsi_hw_health_check(struct work_struct *work) | |||
4790 | msecs_to_jiffies(1000)); | 4790 | msecs_to_jiffies(1000)); |
4791 | } | 4791 | } |
4792 | 4792 | ||
4793 | static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev, | 4793 | static int beiscsi_dev_probe(struct pci_dev *pcidev, |
4794 | const struct pci_device_id *id) | 4794 | const struct pci_device_id *id) |
4795 | { | 4795 | { |
4796 | struct beiscsi_hba *phba = NULL; | 4796 | struct beiscsi_hba *phba = NULL; |
4797 | struct hwi_controller *phwi_ctrlr; | 4797 | struct hwi_controller *phwi_ctrlr; |
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c index 895b0e516e07..e6bf12675db8 100644 --- a/drivers/scsi/bfa/bfad.c +++ b/drivers/scsi/bfa/bfad.c | |||
@@ -1739,7 +1739,7 @@ static struct pci_driver bfad_pci_driver = { | |||
1739 | .name = BFAD_DRIVER_NAME, | 1739 | .name = BFAD_DRIVER_NAME, |
1740 | .id_table = bfad_id_table, | 1740 | .id_table = bfad_id_table, |
1741 | .probe = bfad_pci_probe, | 1741 | .probe = bfad_pci_probe, |
1742 | .remove = __devexit_p(bfad_pci_remove), | 1742 | .remove = bfad_pci_remove, |
1743 | .err_handler = &bfad_err_handler, | 1743 | .err_handler = &bfad_err_handler, |
1744 | }; | 1744 | }; |
1745 | 1745 | ||
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index e0558656c646..70ecd953a579 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c | |||
@@ -25,7 +25,7 @@ DEFINE_PER_CPU(struct bnx2fc_percpu_s, bnx2fc_percpu); | |||
25 | #define DRV_MODULE_RELDATE "Jun 04, 2012" | 25 | #define DRV_MODULE_RELDATE "Jun 04, 2012" |
26 | 26 | ||
27 | 27 | ||
28 | static char version[] __devinitdata = | 28 | static char version[] = |
29 | "Broadcom NetXtreme II FCoE Driver " DRV_MODULE_NAME \ | 29 | "Broadcom NetXtreme II FCoE Driver " DRV_MODULE_NAME \ |
30 | " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; | 30 | " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; |
31 | 31 | ||
diff --git a/drivers/scsi/bnx2i/bnx2i_init.c b/drivers/scsi/bnx2i/bnx2i_init.c index ee009e4ad097..50fef6963a81 100644 --- a/drivers/scsi/bnx2i/bnx2i_init.c +++ b/drivers/scsi/bnx2i/bnx2i_init.c | |||
@@ -21,7 +21,7 @@ static u32 adapter_count; | |||
21 | #define DRV_MODULE_VERSION "2.7.2.2" | 21 | #define DRV_MODULE_VERSION "2.7.2.2" |
22 | #define DRV_MODULE_RELDATE "Apr 25, 2012" | 22 | #define DRV_MODULE_RELDATE "Apr 25, 2012" |
23 | 23 | ||
24 | static char version[] __devinitdata = | 24 | static char version[] = |
25 | "Broadcom NetXtreme II iSCSI Driver " DRV_MODULE_NAME \ | 25 | "Broadcom NetXtreme II iSCSI Driver " DRV_MODULE_NAME \ |
26 | " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; | 26 | " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; |
27 | 27 | ||
diff --git a/drivers/scsi/bvme6000_scsi.c b/drivers/scsi/bvme6000_scsi.c index d40ea2f5be10..1e3f96adf9da 100644 --- a/drivers/scsi/bvme6000_scsi.c +++ b/drivers/scsi/bvme6000_scsi.c | |||
@@ -34,7 +34,7 @@ static struct scsi_host_template bvme6000_scsi_driver_template = { | |||
34 | 34 | ||
35 | static struct platform_device *bvme6000_scsi_device; | 35 | static struct platform_device *bvme6000_scsi_device; |
36 | 36 | ||
37 | static __devinit int | 37 | static int |
38 | bvme6000_probe(struct platform_device *dev) | 38 | bvme6000_probe(struct platform_device *dev) |
39 | { | 39 | { |
40 | struct Scsi_Host *host; | 40 | struct Scsi_Host *host; |
@@ -88,7 +88,7 @@ bvme6000_probe(struct platform_device *dev) | |||
88 | return -ENODEV; | 88 | return -ENODEV; |
89 | } | 89 | } |
90 | 90 | ||
91 | static __devexit int | 91 | static int |
92 | bvme6000_device_remove(struct platform_device *dev) | 92 | bvme6000_device_remove(struct platform_device *dev) |
93 | { | 93 | { |
94 | struct Scsi_Host *host = platform_get_drvdata(dev); | 94 | struct Scsi_Host *host = platform_get_drvdata(dev); |
@@ -108,7 +108,7 @@ static struct platform_driver bvme6000_scsi_driver = { | |||
108 | .owner = THIS_MODULE, | 108 | .owner = THIS_MODULE, |
109 | }, | 109 | }, |
110 | .probe = bvme6000_probe, | 110 | .probe = bvme6000_probe, |
111 | .remove = __devexit_p(bvme6000_device_remove), | 111 | .remove = bvme6000_device_remove, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static int __init bvme6000_scsi_init(void) | 114 | static int __init bvme6000_scsi_init(void) |
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index fdd408ff80ad..b42cbbd3d92d 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c | |||
@@ -115,9 +115,8 @@ static const struct file_operations csio_mem_debugfs_fops = { | |||
115 | .llseek = default_llseek, | 115 | .llseek = default_llseek, |
116 | }; | 116 | }; |
117 | 117 | ||
118 | static void __devinit | 118 | static void csio_add_debugfs_mem(struct csio_hw *hw, const char *name, |
119 | csio_add_debugfs_mem(struct csio_hw *hw, const char *name, | 119 | unsigned int idx, unsigned int size_mb) |
120 | unsigned int idx, unsigned int size_mb) | ||
121 | { | 120 | { |
122 | struct dentry *de; | 121 | struct dentry *de; |
123 | 122 | ||
@@ -127,8 +126,7 @@ csio_add_debugfs_mem(struct csio_hw *hw, const char *name, | |||
127 | de->d_inode->i_size = size_mb << 20; | 126 | de->d_inode->i_size = size_mb << 20; |
128 | } | 127 | } |
129 | 128 | ||
130 | static int __devinit | 129 | static int csio_setup_debugfs(struct csio_hw *hw) |
131 | csio_setup_debugfs(struct csio_hw *hw) | ||
132 | { | 130 | { |
133 | int i; | 131 | int i; |
134 | 132 | ||
@@ -531,8 +529,7 @@ csio_resource_free(struct csio_hw *hw) | |||
531 | * Allocates HW structure, DMA, memory resources, maps BARS to | 529 | * Allocates HW structure, DMA, memory resources, maps BARS to |
532 | * host memory and initializes HW module. | 530 | * host memory and initializes HW module. |
533 | */ | 531 | */ |
534 | static struct csio_hw * __devinit | 532 | static struct csio_hw *csio_hw_alloc(struct pci_dev *pdev) |
535 | csio_hw_alloc(struct pci_dev *pdev) | ||
536 | { | 533 | { |
537 | struct csio_hw *hw; | 534 | struct csio_hw *hw; |
538 | 535 | ||
@@ -956,8 +953,7 @@ csio_lnode_init_post(struct csio_lnode *ln) | |||
956 | * - Once hardware is ready, initiated scan of the host via | 953 | * - Once hardware is ready, initiated scan of the host via |
957 | * scsi_scan_host. | 954 | * scsi_scan_host. |
958 | */ | 955 | */ |
959 | static int __devinit | 956 | static int csio_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
960 | csio_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | ||
961 | { | 957 | { |
962 | int rv; | 958 | int rv; |
963 | int bars; | 959 | int bars; |
@@ -1036,8 +1032,7 @@ err: | |||
1036 | * | 1032 | * |
1037 | * Used during hotplug operation. | 1033 | * Used during hotplug operation. |
1038 | */ | 1034 | */ |
1039 | static void __devexit | 1035 | static void csio_remove_one(struct pci_dev *pdev) |
1040 | csio_remove_one(struct pci_dev *pdev) | ||
1041 | { | 1036 | { |
1042 | struct csio_hw *hw = pci_get_drvdata(pdev); | 1037 | struct csio_hw *hw = pci_get_drvdata(pdev); |
1043 | int bars = pci_select_bars(pdev, IORESOURCE_MEM); | 1038 | int bars = pci_select_bars(pdev, IORESOURCE_MEM); |
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 13aeca3d51f2..865c64fa923c 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c | |||
@@ -489,7 +489,7 @@ struct ParameterData { | |||
489 | int def; /* default value */ | 489 | int def; /* default value */ |
490 | int safe; /* safe value */ | 490 | int safe; /* safe value */ |
491 | }; | 491 | }; |
492 | static struct ParameterData __devinitdata cfg_data[] = { | 492 | static struct ParameterData cfg_data[] = { |
493 | { /* adapter id */ | 493 | { /* adapter id */ |
494 | CFG_PARAM_UNSET, | 494 | CFG_PARAM_UNSET, |
495 | 0, | 495 | 0, |
@@ -574,7 +574,7 @@ MODULE_PARM_DESC(reset_delay, "Reset delay in seconds. Default 1 (0-180)"); | |||
574 | * set_safe_settings - if the use_safe_settings option is set then | 574 | * set_safe_settings - if the use_safe_settings option is set then |
575 | * set all values to the safe and slow values. | 575 | * set all values to the safe and slow values. |
576 | **/ | 576 | **/ |
577 | static void __devinit set_safe_settings(void) | 577 | static void set_safe_settings(void) |
578 | { | 578 | { |
579 | if (use_safe_settings) | 579 | if (use_safe_settings) |
580 | { | 580 | { |
@@ -593,7 +593,7 @@ static void __devinit set_safe_settings(void) | |||
593 | * fix_settings - reset any boot parameters which are out of range | 593 | * fix_settings - reset any boot parameters which are out of range |
594 | * back to the default values. | 594 | * back to the default values. |
595 | **/ | 595 | **/ |
596 | static void __devinit fix_settings(void) | 596 | static void fix_settings(void) |
597 | { | 597 | { |
598 | int i; | 598 | int i; |
599 | 599 | ||
@@ -620,7 +620,7 @@ static void __devinit fix_settings(void) | |||
620 | * Mapping from the eeprom delay index value (index into this array) | 620 | * Mapping from the eeprom delay index value (index into this array) |
621 | * to the number of actual seconds that the delay should be for. | 621 | * to the number of actual seconds that the delay should be for. |
622 | */ | 622 | */ |
623 | static char __devinitdata eeprom_index_to_delay_map[] = | 623 | static char eeprom_index_to_delay_map[] = |
624 | { 1, 3, 5, 10, 16, 30, 60, 120 }; | 624 | { 1, 3, 5, 10, 16, 30, 60, 120 }; |
625 | 625 | ||
626 | 626 | ||
@@ -630,7 +630,7 @@ static char __devinitdata eeprom_index_to_delay_map[] = | |||
630 | * | 630 | * |
631 | * @eeprom: The eeprom structure in which we find the delay index to map. | 631 | * @eeprom: The eeprom structure in which we find the delay index to map. |
632 | **/ | 632 | **/ |
633 | static void __devinit eeprom_index_to_delay(struct NvRamType *eeprom) | 633 | static void eeprom_index_to_delay(struct NvRamType *eeprom) |
634 | { | 634 | { |
635 | eeprom->delay_time = eeprom_index_to_delay_map[eeprom->delay_time]; | 635 | eeprom->delay_time = eeprom_index_to_delay_map[eeprom->delay_time]; |
636 | } | 636 | } |
@@ -643,7 +643,7 @@ static void __devinit eeprom_index_to_delay(struct NvRamType *eeprom) | |||
643 | * | 643 | * |
644 | * @delay: The delay, in seconds, to find the eeprom index for. | 644 | * @delay: The delay, in seconds, to find the eeprom index for. |
645 | **/ | 645 | **/ |
646 | static int __devinit delay_to_eeprom_index(int delay) | 646 | static int delay_to_eeprom_index(int delay) |
647 | { | 647 | { |
648 | u8 idx = 0; | 648 | u8 idx = 0; |
649 | while (idx < 7 && eeprom_index_to_delay_map[idx] < delay) | 649 | while (idx < 7 && eeprom_index_to_delay_map[idx] < delay) |
@@ -659,7 +659,7 @@ static int __devinit delay_to_eeprom_index(int delay) | |||
659 | * | 659 | * |
660 | * @eeprom: The eeprom data to override with command line options. | 660 | * @eeprom: The eeprom data to override with command line options. |
661 | **/ | 661 | **/ |
662 | static void __devinit eeprom_override(struct NvRamType *eeprom) | 662 | static void eeprom_override(struct NvRamType *eeprom) |
663 | { | 663 | { |
664 | u8 id; | 664 | u8 id; |
665 | 665 | ||
@@ -3938,7 +3938,7 @@ static void dc395x_slave_destroy(struct scsi_device *scsi_device) | |||
3938 | * | 3938 | * |
3939 | * @io_port: base I/O address | 3939 | * @io_port: base I/O address |
3940 | **/ | 3940 | **/ |
3941 | static void __devinit trms1040_wait_30us(unsigned long io_port) | 3941 | static void trms1040_wait_30us(unsigned long io_port) |
3942 | { | 3942 | { |
3943 | /* ScsiPortStallExecution(30); wait 30 us */ | 3943 | /* ScsiPortStallExecution(30); wait 30 us */ |
3944 | outb(5, io_port + TRM_S1040_GEN_TIMER); | 3944 | outb(5, io_port + TRM_S1040_GEN_TIMER); |
@@ -3955,7 +3955,7 @@ static void __devinit trms1040_wait_30us(unsigned long io_port) | |||
3955 | * @cmd: SB + op code (command) to send | 3955 | * @cmd: SB + op code (command) to send |
3956 | * @addr: address to send | 3956 | * @addr: address to send |
3957 | **/ | 3957 | **/ |
3958 | static void __devinit trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) | 3958 | static void trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) |
3959 | { | 3959 | { |
3960 | int i; | 3960 | int i; |
3961 | u8 send_data; | 3961 | u8 send_data; |
@@ -4000,7 +4000,7 @@ static void __devinit trms1040_write_cmd(unsigned long io_port, u8 cmd, u8 addr) | |||
4000 | * @addr: offset into EEPROM | 4000 | * @addr: offset into EEPROM |
4001 | * @byte: bytes to write | 4001 | * @byte: bytes to write |
4002 | **/ | 4002 | **/ |
4003 | static void __devinit trms1040_set_data(unsigned long io_port, u8 addr, u8 byte) | 4003 | static void trms1040_set_data(unsigned long io_port, u8 addr, u8 byte) |
4004 | { | 4004 | { |
4005 | int i; | 4005 | int i; |
4006 | u8 send_data; | 4006 | u8 send_data; |
@@ -4054,7 +4054,7 @@ static void __devinit trms1040_set_data(unsigned long io_port, u8 addr, u8 byte) | |||
4054 | * @eeprom: the data to write | 4054 | * @eeprom: the data to write |
4055 | * @io_port: the base io port | 4055 | * @io_port: the base io port |
4056 | **/ | 4056 | **/ |
4057 | static void __devinit trms1040_write_all(struct NvRamType *eeprom, unsigned long io_port) | 4057 | static void trms1040_write_all(struct NvRamType *eeprom, unsigned long io_port) |
4058 | { | 4058 | { |
4059 | u8 *b_eeprom = (u8 *)eeprom; | 4059 | u8 *b_eeprom = (u8 *)eeprom; |
4060 | u8 addr; | 4060 | u8 addr; |
@@ -4094,7 +4094,7 @@ static void __devinit trms1040_write_all(struct NvRamType *eeprom, unsigned long | |||
4094 | * | 4094 | * |
4095 | * Returns the byte read. | 4095 | * Returns the byte read. |
4096 | **/ | 4096 | **/ |
4097 | static u8 __devinit trms1040_get_data(unsigned long io_port, u8 addr) | 4097 | static u8 trms1040_get_data(unsigned long io_port, u8 addr) |
4098 | { | 4098 | { |
4099 | int i; | 4099 | int i; |
4100 | u8 read_byte; | 4100 | u8 read_byte; |
@@ -4132,7 +4132,7 @@ static u8 __devinit trms1040_get_data(unsigned long io_port, u8 addr) | |||
4132 | * @eeprom: where to store the data | 4132 | * @eeprom: where to store the data |
4133 | * @io_port: the base io port | 4133 | * @io_port: the base io port |
4134 | **/ | 4134 | **/ |
4135 | static void __devinit trms1040_read_all(struct NvRamType *eeprom, unsigned long io_port) | 4135 | static void trms1040_read_all(struct NvRamType *eeprom, unsigned long io_port) |
4136 | { | 4136 | { |
4137 | u8 *b_eeprom = (u8 *)eeprom; | 4137 | u8 *b_eeprom = (u8 *)eeprom; |
4138 | u8 addr; | 4138 | u8 addr; |
@@ -4162,7 +4162,7 @@ static void __devinit trms1040_read_all(struct NvRamType *eeprom, unsigned long | |||
4162 | * @eeprom: caller allocated strcuture to read the eeprom data into | 4162 | * @eeprom: caller allocated strcuture to read the eeprom data into |
4163 | * @io_port: io port to read from | 4163 | * @io_port: io port to read from |
4164 | **/ | 4164 | **/ |
4165 | static void __devinit check_eeprom(struct NvRamType *eeprom, unsigned long io_port) | 4165 | static void check_eeprom(struct NvRamType *eeprom, unsigned long io_port) |
4166 | { | 4166 | { |
4167 | u16 *w_eeprom = (u16 *)eeprom; | 4167 | u16 *w_eeprom = (u16 *)eeprom; |
4168 | u16 w_addr; | 4168 | u16 w_addr; |
@@ -4232,7 +4232,7 @@ static void __devinit check_eeprom(struct NvRamType *eeprom, unsigned long io_po | |||
4232 | * | 4232 | * |
4233 | * @eeprom: The eeprom data strucutre to show details for. | 4233 | * @eeprom: The eeprom data strucutre to show details for. |
4234 | **/ | 4234 | **/ |
4235 | static void __devinit print_eeprom_settings(struct NvRamType *eeprom) | 4235 | static void print_eeprom_settings(struct NvRamType *eeprom) |
4236 | { | 4236 | { |
4237 | dprintkl(KERN_INFO, "Used settings: AdapterID=%02i, Speed=%i(%02i.%01iMHz), dev_mode=0x%02x\n", | 4237 | dprintkl(KERN_INFO, "Used settings: AdapterID=%02i, Speed=%i(%02i.%01iMHz), dev_mode=0x%02x\n", |
4238 | eeprom->scsi_id, | 4238 | eeprom->scsi_id, |
@@ -4260,7 +4260,7 @@ static void adapter_sg_tables_free(struct AdapterCtlBlk *acb) | |||
4260 | /* | 4260 | /* |
4261 | * Allocate SG tables; as we have to pci_map them, an SG list (struct SGentry*) | 4261 | * Allocate SG tables; as we have to pci_map them, an SG list (struct SGentry*) |
4262 | * should never cross a page boundary */ | 4262 | * should never cross a page boundary */ |
4263 | static int __devinit adapter_sg_tables_alloc(struct AdapterCtlBlk *acb) | 4263 | static int adapter_sg_tables_alloc(struct AdapterCtlBlk *acb) |
4264 | { | 4264 | { |
4265 | const unsigned mem_needed = (DC395x_MAX_SRB_CNT+1) | 4265 | const unsigned mem_needed = (DC395x_MAX_SRB_CNT+1) |
4266 | *SEGMENTX_LEN; | 4266 | *SEGMENTX_LEN; |
@@ -4306,7 +4306,7 @@ static int __devinit adapter_sg_tables_alloc(struct AdapterCtlBlk *acb) | |||
4306 | * | 4306 | * |
4307 | * @acb: The adapter to print the information for. | 4307 | * @acb: The adapter to print the information for. |
4308 | **/ | 4308 | **/ |
4309 | static void __devinit adapter_print_config(struct AdapterCtlBlk *acb) | 4309 | static void adapter_print_config(struct AdapterCtlBlk *acb) |
4310 | { | 4310 | { |
4311 | u8 bval; | 4311 | u8 bval; |
4312 | 4312 | ||
@@ -4350,7 +4350,7 @@ static void __devinit adapter_print_config(struct AdapterCtlBlk *acb) | |||
4350 | * | 4350 | * |
4351 | * @acb: The adapter to initialize. | 4351 | * @acb: The adapter to initialize. |
4352 | **/ | 4352 | **/ |
4353 | static void __devinit adapter_init_params(struct AdapterCtlBlk *acb) | 4353 | static void adapter_init_params(struct AdapterCtlBlk *acb) |
4354 | { | 4354 | { |
4355 | struct NvRamType *eeprom = &acb->eeprom; | 4355 | struct NvRamType *eeprom = &acb->eeprom; |
4356 | int i; | 4356 | int i; |
@@ -4412,7 +4412,7 @@ static void __devinit adapter_init_params(struct AdapterCtlBlk *acb) | |||
4412 | * | 4412 | * |
4413 | * @host: The scsi host instance to fill in the values for. | 4413 | * @host: The scsi host instance to fill in the values for. |
4414 | **/ | 4414 | **/ |
4415 | static void __devinit adapter_init_scsi_host(struct Scsi_Host *host) | 4415 | static void adapter_init_scsi_host(struct Scsi_Host *host) |
4416 | { | 4416 | { |
4417 | struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; | 4417 | struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; |
4418 | struct NvRamType *eeprom = &acb->eeprom; | 4418 | struct NvRamType *eeprom = &acb->eeprom; |
@@ -4453,7 +4453,7 @@ static void __devinit adapter_init_scsi_host(struct Scsi_Host *host) | |||
4453 | * | 4453 | * |
4454 | * @acb: The adapter which we are to init. | 4454 | * @acb: The adapter which we are to init. |
4455 | **/ | 4455 | **/ |
4456 | static void __devinit adapter_init_chip(struct AdapterCtlBlk *acb) | 4456 | static void adapter_init_chip(struct AdapterCtlBlk *acb) |
4457 | { | 4457 | { |
4458 | struct NvRamType *eeprom = &acb->eeprom; | 4458 | struct NvRamType *eeprom = &acb->eeprom; |
4459 | 4459 | ||
@@ -4506,8 +4506,8 @@ static void __devinit adapter_init_chip(struct AdapterCtlBlk *acb) | |||
4506 | * Returns 0 if the initialization succeeds, any other value on | 4506 | * Returns 0 if the initialization succeeds, any other value on |
4507 | * failure. | 4507 | * failure. |
4508 | **/ | 4508 | **/ |
4509 | static int __devinit adapter_init(struct AdapterCtlBlk *acb, | 4509 | static int adapter_init(struct AdapterCtlBlk *acb, unsigned long io_port, |
4510 | unsigned long io_port, u32 io_port_len, unsigned int irq) | 4510 | u32 io_port_len, unsigned int irq) |
4511 | { | 4511 | { |
4512 | if (!request_region(io_port, io_port_len, DC395X_NAME)) { | 4512 | if (!request_region(io_port, io_port_len, DC395X_NAME)) { |
4513 | dprintkl(KERN_ERR, "Failed to reserve IO region 0x%lx\n", io_port); | 4513 | dprintkl(KERN_ERR, "Failed to reserve IO region 0x%lx\n", io_port); |
@@ -4794,8 +4794,7 @@ static void banner_display(void) | |||
4794 | * | 4794 | * |
4795 | * Returns 0 on success, or an error code (-ve) on failure. | 4795 | * Returns 0 on success, or an error code (-ve) on failure. |
4796 | **/ | 4796 | **/ |
4797 | static int __devinit dc395x_init_one(struct pci_dev *dev, | 4797 | static int dc395x_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
4798 | const struct pci_device_id *id) | ||
4799 | { | 4798 | { |
4800 | struct Scsi_Host *scsi_host = NULL; | 4799 | struct Scsi_Host *scsi_host = NULL; |
4801 | struct AdapterCtlBlk *acb = NULL; | 4800 | struct AdapterCtlBlk *acb = NULL; |
@@ -4861,7 +4860,7 @@ fail: | |||
4861 | * | 4860 | * |
4862 | * @dev: The PCI device to initialize. | 4861 | * @dev: The PCI device to initialize. |
4863 | **/ | 4862 | **/ |
4864 | static void __devexit dc395x_remove_one(struct pci_dev *dev) | 4863 | static void dc395x_remove_one(struct pci_dev *dev) |
4865 | { | 4864 | { |
4866 | struct Scsi_Host *scsi_host = pci_get_drvdata(dev); | 4865 | struct Scsi_Host *scsi_host = pci_get_drvdata(dev); |
4867 | struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)(scsi_host->hostdata); | 4866 | struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)(scsi_host->hostdata); |
@@ -4892,7 +4891,7 @@ static struct pci_driver dc395x_driver = { | |||
4892 | .name = DC395X_NAME, | 4891 | .name = DC395X_NAME, |
4893 | .id_table = dc395x_pci_table, | 4892 | .id_table = dc395x_pci_table, |
4894 | .probe = dc395x_init_one, | 4893 | .probe = dc395x_init_one, |
4895 | .remove = __devexit_p(dc395x_remove_one), | 4894 | .remove = dc395x_remove_one, |
4896 | }; | 4895 | }; |
4897 | 4896 | ||
4898 | 4897 | ||
diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c index 207352cc70cc..4b0dd8c56707 100644 --- a/drivers/scsi/dmx3191d.c +++ b/drivers/scsi/dmx3191d.c | |||
@@ -68,8 +68,8 @@ static struct scsi_host_template dmx3191d_driver_template = { | |||
68 | .use_clustering = DISABLE_CLUSTERING, | 68 | .use_clustering = DISABLE_CLUSTERING, |
69 | }; | 69 | }; |
70 | 70 | ||
71 | static int __devinit dmx3191d_probe_one(struct pci_dev *pdev, | 71 | static int dmx3191d_probe_one(struct pci_dev *pdev, |
72 | const struct pci_device_id *id) | 72 | const struct pci_device_id *id) |
73 | { | 73 | { |
74 | struct Scsi_Host *shost; | 74 | struct Scsi_Host *shost; |
75 | unsigned long io; | 75 | unsigned long io; |
@@ -123,7 +123,7 @@ static int __devinit dmx3191d_probe_one(struct pci_dev *pdev, | |||
123 | return error; | 123 | return error; |
124 | } | 124 | } |
125 | 125 | ||
126 | static void __devexit dmx3191d_remove_one(struct pci_dev *pdev) | 126 | static void dmx3191d_remove_one(struct pci_dev *pdev) |
127 | { | 127 | { |
128 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 128 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
129 | 129 | ||
@@ -150,7 +150,7 @@ static struct pci_driver dmx3191d_pci_driver = { | |||
150 | .name = DMX3191D_DRIVER_NAME, | 150 | .name = DMX3191D_DRIVER_NAME, |
151 | .id_table = dmx3191d_pci_tbl, | 151 | .id_table = dmx3191d_pci_tbl, |
152 | .probe = dmx3191d_probe_one, | 152 | .probe = dmx3191d_probe_one, |
153 | .remove = __devexit_p(dmx3191d_remove_one), | 153 | .remove = dmx3191d_remove_one, |
154 | }; | 154 | }; |
155 | 155 | ||
156 | static int __init dmx3191d_init(void) | 156 | static int __init dmx3191d_init(void) |
diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index 1a2a1e5824e3..fff682976c56 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c | |||
@@ -1771,7 +1771,7 @@ struct scsi_host_template fdomain_driver_template = { | |||
1771 | #ifndef PCMCIA | 1771 | #ifndef PCMCIA |
1772 | #ifdef CONFIG_PCI | 1772 | #ifdef CONFIG_PCI |
1773 | 1773 | ||
1774 | static struct pci_device_id fdomain_pci_tbl[] __devinitdata = { | 1774 | static struct pci_device_id fdomain_pci_tbl[] = { |
1775 | { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, | 1775 | { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, |
1776 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, | 1776 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, |
1777 | { } | 1777 | { } |
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index fc98eb61e760..fbf3ac6e0c55 100644 --- a/drivers/scsi/fnic/fnic_main.c +++ b/drivers/scsi/fnic/fnic_main.c | |||
@@ -399,8 +399,7 @@ static u8 *fnic_get_mac(struct fc_lport *lport) | |||
399 | return fnic->data_src_addr; | 399 | return fnic->data_src_addr; |
400 | } | 400 | } |
401 | 401 | ||
402 | static int __devinit fnic_probe(struct pci_dev *pdev, | 402 | static int fnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
403 | const struct pci_device_id *ent) | ||
404 | { | 403 | { |
405 | struct Scsi_Host *host; | 404 | struct Scsi_Host *host; |
406 | struct fc_lport *lp; | 405 | struct fc_lport *lp; |
@@ -774,7 +773,7 @@ err_out: | |||
774 | return err; | 773 | return err; |
775 | } | 774 | } |
776 | 775 | ||
777 | static void __devexit fnic_remove(struct pci_dev *pdev) | 776 | static void fnic_remove(struct pci_dev *pdev) |
778 | { | 777 | { |
779 | struct fnic *fnic = pci_get_drvdata(pdev); | 778 | struct fnic *fnic = pci_get_drvdata(pdev); |
780 | struct fc_lport *lp = fnic->lport; | 779 | struct fc_lport *lp = fnic->lport; |
@@ -849,7 +848,7 @@ static struct pci_driver fnic_driver = { | |||
849 | .name = DRV_NAME, | 848 | .name = DRV_NAME, |
850 | .id_table = fnic_id_table, | 849 | .id_table = fnic_id_table, |
851 | .probe = fnic_probe, | 850 | .probe = fnic_probe, |
852 | .remove = __devexit_p(fnic_remove), | 851 | .remove = fnic_remove, |
853 | }; | 852 | }; |
854 | 853 | ||
855 | static int __init fnic_init_module(void) | 854 | static int __init fnic_init_module(void) |
diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index 1a5954f0915a..5041f925c191 100644 --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c | |||
@@ -939,7 +939,7 @@ module_param(dtc_3181e, int, 0); | |||
939 | MODULE_LICENSE("GPL"); | 939 | MODULE_LICENSE("GPL"); |
940 | 940 | ||
941 | #ifndef SCSI_G_NCR5380_MEM | 941 | #ifndef SCSI_G_NCR5380_MEM |
942 | static struct isapnp_device_id id_table[] __devinitdata = { | 942 | static struct isapnp_device_id id_table[] = { |
943 | { | 943 | { |
944 | ISAPNP_ANY_ID, ISAPNP_ANY_ID, | 944 | ISAPNP_ANY_ID, ISAPNP_ANY_ID, |
945 | ISAPNP_VENDOR('D', 'T', 'C'), ISAPNP_FUNCTION(0x436e), | 945 | ISAPNP_VENDOR('D', 'T', 'C'), ISAPNP_FUNCTION(0x436e), |
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index 5d72274c507f..599790e41a98 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c | |||
@@ -590,7 +590,7 @@ static struct pci_driver gdth_pci_driver = { | |||
590 | .remove = gdth_pci_remove_one, | 590 | .remove = gdth_pci_remove_one, |
591 | }; | 591 | }; |
592 | 592 | ||
593 | static void __devexit gdth_pci_remove_one(struct pci_dev *pdev) | 593 | static void gdth_pci_remove_one(struct pci_dev *pdev) |
594 | { | 594 | { |
595 | gdth_ha_str *ha = pci_get_drvdata(pdev); | 595 | gdth_ha_str *ha = pci_get_drvdata(pdev); |
596 | 596 | ||
@@ -602,8 +602,8 @@ static void __devexit gdth_pci_remove_one(struct pci_dev *pdev) | |||
602 | pci_disable_device(pdev); | 602 | pci_disable_device(pdev); |
603 | } | 603 | } |
604 | 604 | ||
605 | static int __devinit gdth_pci_init_one(struct pci_dev *pdev, | 605 | static int gdth_pci_init_one(struct pci_dev *pdev, |
606 | const struct pci_device_id *ent) | 606 | const struct pci_device_id *ent) |
607 | { | 607 | { |
608 | u16 vendor = pdev->vendor; | 608 | u16 vendor = pdev->vendor; |
609 | u16 device = pdev->device; | 609 | u16 device = pdev->device; |
@@ -855,8 +855,8 @@ static int __init gdth_init_isa(u32 bios_adr,gdth_ha_str *ha) | |||
855 | #endif /* CONFIG_ISA */ | 855 | #endif /* CONFIG_ISA */ |
856 | 856 | ||
857 | #ifdef CONFIG_PCI | 857 | #ifdef CONFIG_PCI |
858 | static int __devinit gdth_init_pci(struct pci_dev *pdev, gdth_pci_str *pcistr, | 858 | static int gdth_init_pci(struct pci_dev *pdev, gdth_pci_str *pcistr, |
859 | gdth_ha_str *ha) | 859 | gdth_ha_str *ha) |
860 | { | 860 | { |
861 | register gdt6_dpram_str __iomem *dp6_ptr; | 861 | register gdt6_dpram_str __iomem *dp6_ptr; |
862 | register gdt6c_dpram_str __iomem *dp6c_ptr; | 862 | register gdt6c_dpram_str __iomem *dp6c_ptr; |
@@ -1239,7 +1239,7 @@ static int __devinit gdth_init_pci(struct pci_dev *pdev, gdth_pci_str *pcistr, | |||
1239 | 1239 | ||
1240 | /* controller protocol functions */ | 1240 | /* controller protocol functions */ |
1241 | 1241 | ||
1242 | static void __devinit gdth_enable_int(gdth_ha_str *ha) | 1242 | static void gdth_enable_int(gdth_ha_str *ha) |
1243 | { | 1243 | { |
1244 | unsigned long flags; | 1244 | unsigned long flags; |
1245 | gdt2_dpram_str __iomem *dp2_ptr; | 1245 | gdt2_dpram_str __iomem *dp2_ptr; |
@@ -1555,7 +1555,7 @@ static int gdth_internal_cmd(gdth_ha_str *ha, u8 service, u16 opcode, | |||
1555 | 1555 | ||
1556 | /* search for devices */ | 1556 | /* search for devices */ |
1557 | 1557 | ||
1558 | static int __devinit gdth_search_drives(gdth_ha_str *ha) | 1558 | static int gdth_search_drives(gdth_ha_str *ha) |
1559 | { | 1559 | { |
1560 | u16 cdev_cnt, i; | 1560 | u16 cdev_cnt, i; |
1561 | int ok; | 1561 | int ok; |
@@ -4959,8 +4959,7 @@ static int __init gdth_eisa_probe_one(u16 eisa_slot) | |||
4959 | #endif /* CONFIG_EISA */ | 4959 | #endif /* CONFIG_EISA */ |
4960 | 4960 | ||
4961 | #ifdef CONFIG_PCI | 4961 | #ifdef CONFIG_PCI |
4962 | static int __devinit gdth_pci_probe_one(gdth_pci_str *pcistr, | 4962 | static int gdth_pci_probe_one(gdth_pci_str *pcistr, gdth_ha_str **ha_out) |
4963 | gdth_ha_str **ha_out) | ||
4964 | { | 4963 | { |
4965 | struct Scsi_Host *shp; | 4964 | struct Scsi_Host *shp; |
4966 | gdth_ha_str *ha; | 4965 | gdth_ha_str *ha; |
diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c index 488fbc648656..dbe4cc6b9f8b 100644 --- a/drivers/scsi/gvp11.c +++ b/drivers/scsi/gvp11.c | |||
@@ -204,7 +204,7 @@ static struct scsi_host_template gvp11_scsi_template = { | |||
204 | .use_clustering = DISABLE_CLUSTERING | 204 | .use_clustering = DISABLE_CLUSTERING |
205 | }; | 205 | }; |
206 | 206 | ||
207 | static int __devinit check_wd33c93(struct gvp11_scsiregs *regs) | 207 | static int check_wd33c93(struct gvp11_scsiregs *regs) |
208 | { | 208 | { |
209 | #ifdef CHECK_WD33C93 | 209 | #ifdef CHECK_WD33C93 |
210 | volatile unsigned char *sasr_3393, *scmd_3393; | 210 | volatile unsigned char *sasr_3393, *scmd_3393; |
@@ -284,8 +284,7 @@ static int __devinit check_wd33c93(struct gvp11_scsiregs *regs) | |||
284 | return 0; | 284 | return 0; |
285 | } | 285 | } |
286 | 286 | ||
287 | static int __devinit gvp11_probe(struct zorro_dev *z, | 287 | static int gvp11_probe(struct zorro_dev *z, const struct zorro_device_id *ent) |
288 | const struct zorro_device_id *ent) | ||
289 | { | 288 | { |
290 | struct Scsi_Host *instance; | 289 | struct Scsi_Host *instance; |
291 | unsigned long address; | 290 | unsigned long address; |
@@ -380,7 +379,7 @@ fail_check_or_alloc: | |||
380 | return error; | 379 | return error; |
381 | } | 380 | } |
382 | 381 | ||
383 | static void __devexit gvp11_remove(struct zorro_dev *z) | 382 | static void gvp11_remove(struct zorro_dev *z) |
384 | { | 383 | { |
385 | struct Scsi_Host *instance = zorro_get_drvdata(z); | 384 | struct Scsi_Host *instance = zorro_get_drvdata(z); |
386 | struct gvp11_hostdata *hdata = shost_priv(instance); | 385 | struct gvp11_hostdata *hdata = shost_priv(instance); |
@@ -398,7 +397,7 @@ static void __devexit gvp11_remove(struct zorro_dev *z) | |||
398 | * SERIES I though). | 397 | * SERIES I though). |
399 | */ | 398 | */ |
400 | 399 | ||
401 | static struct zorro_device_id gvp11_zorro_tbl[] __devinitdata = { | 400 | static struct zorro_device_id gvp11_zorro_tbl[] = { |
402 | { ZORRO_PROD_GVP_COMBO_030_R3_SCSI, ~0x00ffffff }, | 401 | { ZORRO_PROD_GVP_COMBO_030_R3_SCSI, ~0x00ffffff }, |
403 | { ZORRO_PROD_GVP_SERIES_II, ~0x00ffffff }, | 402 | { ZORRO_PROD_GVP_SERIES_II, ~0x00ffffff }, |
404 | { ZORRO_PROD_GVP_GFORCE_030_SCSI, ~0x01ffffff }, | 403 | { ZORRO_PROD_GVP_GFORCE_030_SCSI, ~0x01ffffff }, |
@@ -414,7 +413,7 @@ static struct zorro_driver gvp11_driver = { | |||
414 | .name = "gvp11", | 413 | .name = "gvp11", |
415 | .id_table = gvp11_zorro_tbl, | 414 | .id_table = gvp11_zorro_tbl, |
416 | .probe = gvp11_probe, | 415 | .probe = gvp11_probe, |
417 | .remove = __devexit_p(gvp11_remove), | 416 | .remove = gvp11_remove, |
418 | }; | 417 | }; |
419 | 418 | ||
420 | static int __init gvp11_init(void) | 419 | static int __init gvp11_init(void) |
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 4217e49aea46..4f338061b5c3 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c | |||
@@ -189,16 +189,16 @@ static void check_ioctl_unit_attention(struct ctlr_info *h, | |||
189 | /* performant mode helper functions */ | 189 | /* performant mode helper functions */ |
190 | static void calc_bucket_map(int *bucket, int num_buckets, | 190 | static void calc_bucket_map(int *bucket, int num_buckets, |
191 | int nsgs, int *bucket_map); | 191 | int nsgs, int *bucket_map); |
192 | static __devinit void hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h); | 192 | static void hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h); |
193 | static inline u32 next_command(struct ctlr_info *h, u8 q); | 193 | static inline u32 next_command(struct ctlr_info *h, u8 q); |
194 | static int __devinit hpsa_find_cfg_addrs(struct pci_dev *pdev, | 194 | static int hpsa_find_cfg_addrs(struct pci_dev *pdev, void __iomem *vaddr, |
195 | void __iomem *vaddr, u32 *cfg_base_addr, u64 *cfg_base_addr_index, | 195 | u32 *cfg_base_addr, u64 *cfg_base_addr_index, |
196 | u64 *cfg_offset); | 196 | u64 *cfg_offset); |
197 | static int __devinit hpsa_pci_find_memory_BAR(struct pci_dev *pdev, | 197 | static int hpsa_pci_find_memory_BAR(struct pci_dev *pdev, |
198 | unsigned long *memory_bar); | 198 | unsigned long *memory_bar); |
199 | static int __devinit hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id); | 199 | static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id); |
200 | static int __devinit hpsa_wait_for_board_state(struct pci_dev *pdev, | 200 | static int hpsa_wait_for_board_state(struct pci_dev *pdev, void __iomem *vaddr, |
201 | void __iomem *vaddr, int wait_for_ready); | 201 | int wait_for_ready); |
202 | static inline void finish_cmd(struct CommandList *c); | 202 | static inline void finish_cmd(struct CommandList *c); |
203 | #define BOARD_NOT_READY 0 | 203 | #define BOARD_NOT_READY 0 |
204 | #define BOARD_READY 1 | 204 | #define BOARD_READY 1 |
@@ -3182,8 +3182,8 @@ static int hpsa_ioctl(struct scsi_device *dev, int cmd, void *arg) | |||
3182 | } | 3182 | } |
3183 | } | 3183 | } |
3184 | 3184 | ||
3185 | static int __devinit hpsa_send_host_reset(struct ctlr_info *h, | 3185 | static int hpsa_send_host_reset(struct ctlr_info *h, unsigned char *scsi3addr, |
3186 | unsigned char *scsi3addr, u8 reset_type) | 3186 | u8 reset_type) |
3187 | { | 3187 | { |
3188 | struct CommandList *c; | 3188 | struct CommandList *c; |
3189 | 3189 | ||
@@ -3606,8 +3606,8 @@ static irqreturn_t do_hpsa_intr_msi(int irq, void *queue) | |||
3606 | * in simple mode, not performant mode due to the tag lookup. | 3606 | * in simple mode, not performant mode due to the tag lookup. |
3607 | * We only ever use this immediately after a controller reset. | 3607 | * We only ever use this immediately after a controller reset. |
3608 | */ | 3608 | */ |
3609 | static __devinit int hpsa_message(struct pci_dev *pdev, unsigned char opcode, | 3609 | static int hpsa_message(struct pci_dev *pdev, unsigned char opcode, |
3610 | unsigned char type) | 3610 | unsigned char type) |
3611 | { | 3611 | { |
3612 | struct Command { | 3612 | struct Command { |
3613 | struct CommandListHeader CommandHeader; | 3613 | struct CommandListHeader CommandHeader; |
@@ -3756,14 +3756,13 @@ static int hpsa_controller_hard_reset(struct pci_dev *pdev, | |||
3756 | return 0; | 3756 | return 0; |
3757 | } | 3757 | } |
3758 | 3758 | ||
3759 | static __devinit void init_driver_version(char *driver_version, int len) | 3759 | static void init_driver_version(char *driver_version, int len) |
3760 | { | 3760 | { |
3761 | memset(driver_version, 0, len); | 3761 | memset(driver_version, 0, len); |
3762 | strncpy(driver_version, HPSA " " HPSA_DRIVER_VERSION, len - 1); | 3762 | strncpy(driver_version, HPSA " " HPSA_DRIVER_VERSION, len - 1); |
3763 | } | 3763 | } |
3764 | 3764 | ||
3765 | static __devinit int write_driver_ver_to_cfgtable( | 3765 | static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable) |
3766 | struct CfgTable __iomem *cfgtable) | ||
3767 | { | 3766 | { |
3768 | char *driver_version; | 3767 | char *driver_version; |
3769 | int i, size = sizeof(cfgtable->driver_version); | 3768 | int i, size = sizeof(cfgtable->driver_version); |
@@ -3779,8 +3778,8 @@ static __devinit int write_driver_ver_to_cfgtable( | |||
3779 | return 0; | 3778 | return 0; |
3780 | } | 3779 | } |
3781 | 3780 | ||
3782 | static __devinit void read_driver_ver_from_cfgtable( | 3781 | static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, |
3783 | struct CfgTable __iomem *cfgtable, unsigned char *driver_ver) | 3782 | unsigned char *driver_ver) |
3784 | { | 3783 | { |
3785 | int i; | 3784 | int i; |
3786 | 3785 | ||
@@ -3788,8 +3787,7 @@ static __devinit void read_driver_ver_from_cfgtable( | |||
3788 | driver_ver[i] = readb(&cfgtable->driver_version[i]); | 3787 | driver_ver[i] = readb(&cfgtable->driver_version[i]); |
3789 | } | 3788 | } |
3790 | 3789 | ||
3791 | static __devinit int controller_reset_failed( | 3790 | static int controller_reset_failed(struct CfgTable __iomem *cfgtable) |
3792 | struct CfgTable __iomem *cfgtable) | ||
3793 | { | 3791 | { |
3794 | 3792 | ||
3795 | char *driver_ver, *old_driver_ver; | 3793 | char *driver_ver, *old_driver_ver; |
@@ -3812,7 +3810,7 @@ static __devinit int controller_reset_failed( | |||
3812 | /* This does a hard reset of the controller using PCI power management | 3810 | /* This does a hard reset of the controller using PCI power management |
3813 | * states or the using the doorbell register. | 3811 | * states or the using the doorbell register. |
3814 | */ | 3812 | */ |
3815 | static __devinit int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev) | 3813 | static int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev) |
3816 | { | 3814 | { |
3817 | u64 cfg_offset; | 3815 | u64 cfg_offset; |
3818 | u32 cfg_base_addr; | 3816 | u32 cfg_base_addr; |
@@ -4029,7 +4027,7 @@ static int find_PCI_BAR_index(struct pci_dev *pdev, unsigned long pci_bar_addr) | |||
4029 | * controllers that are capable. If not, we use IO-APIC mode. | 4027 | * controllers that are capable. If not, we use IO-APIC mode. |
4030 | */ | 4028 | */ |
4031 | 4029 | ||
4032 | static void __devinit hpsa_interrupt_mode(struct ctlr_info *h) | 4030 | static void hpsa_interrupt_mode(struct ctlr_info *h) |
4033 | { | 4031 | { |
4034 | #ifdef CONFIG_PCI_MSI | 4032 | #ifdef CONFIG_PCI_MSI |
4035 | int err, i; | 4033 | int err, i; |
@@ -4077,7 +4075,7 @@ default_int_mode: | |||
4077 | h->intr[h->intr_mode] = h->pdev->irq; | 4075 | h->intr[h->intr_mode] = h->pdev->irq; |
4078 | } | 4076 | } |
4079 | 4077 | ||
4080 | static int __devinit hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) | 4078 | static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) |
4081 | { | 4079 | { |
4082 | int i; | 4080 | int i; |
4083 | u32 subsystem_vendor_id, subsystem_device_id; | 4081 | u32 subsystem_vendor_id, subsystem_device_id; |
@@ -4101,8 +4099,8 @@ static int __devinit hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) | |||
4101 | return ARRAY_SIZE(products) - 1; /* generic unknown smart array */ | 4099 | return ARRAY_SIZE(products) - 1; /* generic unknown smart array */ |
4102 | } | 4100 | } |
4103 | 4101 | ||
4104 | static int __devinit hpsa_pci_find_memory_BAR(struct pci_dev *pdev, | 4102 | static int hpsa_pci_find_memory_BAR(struct pci_dev *pdev, |
4105 | unsigned long *memory_bar) | 4103 | unsigned long *memory_bar) |
4106 | { | 4104 | { |
4107 | int i; | 4105 | int i; |
4108 | 4106 | ||
@@ -4118,8 +4116,8 @@ static int __devinit hpsa_pci_find_memory_BAR(struct pci_dev *pdev, | |||
4118 | return -ENODEV; | 4116 | return -ENODEV; |
4119 | } | 4117 | } |
4120 | 4118 | ||
4121 | static int __devinit hpsa_wait_for_board_state(struct pci_dev *pdev, | 4119 | static int hpsa_wait_for_board_state(struct pci_dev *pdev, void __iomem *vaddr, |
4122 | void __iomem *vaddr, int wait_for_ready) | 4120 | int wait_for_ready) |
4123 | { | 4121 | { |
4124 | int i, iterations; | 4122 | int i, iterations; |
4125 | u32 scratchpad; | 4123 | u32 scratchpad; |
@@ -4143,9 +4141,9 @@ static int __devinit hpsa_wait_for_board_state(struct pci_dev *pdev, | |||
4143 | return -ENODEV; | 4141 | return -ENODEV; |
4144 | } | 4142 | } |
4145 | 4143 | ||
4146 | static int __devinit hpsa_find_cfg_addrs(struct pci_dev *pdev, | 4144 | static int hpsa_find_cfg_addrs(struct pci_dev *pdev, void __iomem *vaddr, |
4147 | void __iomem *vaddr, u32 *cfg_base_addr, u64 *cfg_base_addr_index, | 4145 | u32 *cfg_base_addr, u64 *cfg_base_addr_index, |
4148 | u64 *cfg_offset) | 4146 | u64 *cfg_offset) |
4149 | { | 4147 | { |
4150 | *cfg_base_addr = readl(vaddr + SA5_CTCFG_OFFSET); | 4148 | *cfg_base_addr = readl(vaddr + SA5_CTCFG_OFFSET); |
4151 | *cfg_offset = readl(vaddr + SA5_CTMEM_OFFSET); | 4149 | *cfg_offset = readl(vaddr + SA5_CTMEM_OFFSET); |
@@ -4158,7 +4156,7 @@ static int __devinit hpsa_find_cfg_addrs(struct pci_dev *pdev, | |||
4158 | return 0; | 4156 | return 0; |
4159 | } | 4157 | } |
4160 | 4158 | ||
4161 | static int __devinit hpsa_find_cfgtables(struct ctlr_info *h) | 4159 | static int hpsa_find_cfgtables(struct ctlr_info *h) |
4162 | { | 4160 | { |
4163 | u64 cfg_offset; | 4161 | u64 cfg_offset; |
4164 | u32 cfg_base_addr; | 4162 | u32 cfg_base_addr; |
@@ -4187,7 +4185,7 @@ static int __devinit hpsa_find_cfgtables(struct ctlr_info *h) | |||
4187 | return 0; | 4185 | return 0; |
4188 | } | 4186 | } |
4189 | 4187 | ||
4190 | static void __devinit hpsa_get_max_perf_mode_cmds(struct ctlr_info *h) | 4188 | static void hpsa_get_max_perf_mode_cmds(struct ctlr_info *h) |
4191 | { | 4189 | { |
4192 | h->max_commands = readl(&(h->cfgtable->MaxPerformantModeCommands)); | 4190 | h->max_commands = readl(&(h->cfgtable->MaxPerformantModeCommands)); |
4193 | 4191 | ||
@@ -4208,7 +4206,7 @@ static void __devinit hpsa_get_max_perf_mode_cmds(struct ctlr_info *h) | |||
4208 | * max commands, max SG elements without chaining, and with chaining, | 4206 | * max commands, max SG elements without chaining, and with chaining, |
4209 | * SG chain block size, etc. | 4207 | * SG chain block size, etc. |
4210 | */ | 4208 | */ |
4211 | static void __devinit hpsa_find_board_params(struct ctlr_info *h) | 4209 | static void hpsa_find_board_params(struct ctlr_info *h) |
4212 | { | 4210 | { |
4213 | hpsa_get_max_perf_mode_cmds(h); | 4211 | hpsa_get_max_perf_mode_cmds(h); |
4214 | h->nr_cmds = h->max_commands - 4; /* Allow room for some ioctls */ | 4212 | h->nr_cmds = h->max_commands - 4; /* Allow room for some ioctls */ |
@@ -4266,7 +4264,7 @@ static inline void hpsa_p600_dma_prefetch_quirk(struct ctlr_info *h) | |||
4266 | writel(dma_prefetch, h->vaddr + I2O_DMA1_CFG); | 4264 | writel(dma_prefetch, h->vaddr + I2O_DMA1_CFG); |
4267 | } | 4265 | } |
4268 | 4266 | ||
4269 | static void __devinit hpsa_wait_for_mode_change_ack(struct ctlr_info *h) | 4267 | static void hpsa_wait_for_mode_change_ack(struct ctlr_info *h) |
4270 | { | 4268 | { |
4271 | int i; | 4269 | int i; |
4272 | u32 doorbell_value; | 4270 | u32 doorbell_value; |
@@ -4287,7 +4285,7 @@ static void __devinit hpsa_wait_for_mode_change_ack(struct ctlr_info *h) | |||
4287 | } | 4285 | } |
4288 | } | 4286 | } |
4289 | 4287 | ||
4290 | static int __devinit hpsa_enter_simple_mode(struct ctlr_info *h) | 4288 | static int hpsa_enter_simple_mode(struct ctlr_info *h) |
4291 | { | 4289 | { |
4292 | u32 trans_support; | 4290 | u32 trans_support; |
4293 | 4291 | ||
@@ -4310,7 +4308,7 @@ static int __devinit hpsa_enter_simple_mode(struct ctlr_info *h) | |||
4310 | return 0; | 4308 | return 0; |
4311 | } | 4309 | } |
4312 | 4310 | ||
4313 | static int __devinit hpsa_pci_init(struct ctlr_info *h) | 4311 | static int hpsa_pci_init(struct ctlr_info *h) |
4314 | { | 4312 | { |
4315 | int prod_index, err; | 4313 | int prod_index, err; |
4316 | 4314 | ||
@@ -4378,7 +4376,7 @@ err_out_free_res: | |||
4378 | return err; | 4376 | return err; |
4379 | } | 4377 | } |
4380 | 4378 | ||
4381 | static void __devinit hpsa_hba_inquiry(struct ctlr_info *h) | 4379 | static void hpsa_hba_inquiry(struct ctlr_info *h) |
4382 | { | 4380 | { |
4383 | int rc; | 4381 | int rc; |
4384 | 4382 | ||
@@ -4394,7 +4392,7 @@ static void __devinit hpsa_hba_inquiry(struct ctlr_info *h) | |||
4394 | } | 4392 | } |
4395 | } | 4393 | } |
4396 | 4394 | ||
4397 | static __devinit int hpsa_init_reset_devices(struct pci_dev *pdev) | 4395 | static int hpsa_init_reset_devices(struct pci_dev *pdev) |
4398 | { | 4396 | { |
4399 | int rc, i; | 4397 | int rc, i; |
4400 | 4398 | ||
@@ -4426,7 +4424,7 @@ static __devinit int hpsa_init_reset_devices(struct pci_dev *pdev) | |||
4426 | return 0; | 4424 | return 0; |
4427 | } | 4425 | } |
4428 | 4426 | ||
4429 | static __devinit int hpsa_allocate_cmd_pool(struct ctlr_info *h) | 4427 | static int hpsa_allocate_cmd_pool(struct ctlr_info *h) |
4430 | { | 4428 | { |
4431 | h->cmd_pool_bits = kzalloc( | 4429 | h->cmd_pool_bits = kzalloc( |
4432 | DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG) * | 4430 | DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG) * |
@@ -4499,7 +4497,7 @@ static int hpsa_request_irq(struct ctlr_info *h, | |||
4499 | return 0; | 4497 | return 0; |
4500 | } | 4498 | } |
4501 | 4499 | ||
4502 | static int __devinit hpsa_kdump_soft_reset(struct ctlr_info *h) | 4500 | static int hpsa_kdump_soft_reset(struct ctlr_info *h) |
4503 | { | 4501 | { |
4504 | if (hpsa_send_host_reset(h, RAID_CTLR_LUNID, | 4502 | if (hpsa_send_host_reset(h, RAID_CTLR_LUNID, |
4505 | HPSA_RESET_TYPE_CONTROLLER)) { | 4503 | HPSA_RESET_TYPE_CONTROLLER)) { |
@@ -4713,8 +4711,7 @@ static void stop_controller_lockup_detector(struct ctlr_info *h) | |||
4713 | spin_unlock_irqrestore(&lockup_detector_lock, flags); | 4711 | spin_unlock_irqrestore(&lockup_detector_lock, flags); |
4714 | } | 4712 | } |
4715 | 4713 | ||
4716 | static int __devinit hpsa_init_one(struct pci_dev *pdev, | 4714 | static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) |
4717 | const struct pci_device_id *ent) | ||
4718 | { | 4715 | { |
4719 | int dac, rc; | 4716 | int dac, rc; |
4720 | struct ctlr_info *h; | 4717 | struct ctlr_info *h; |
@@ -4910,7 +4907,7 @@ static void hpsa_shutdown(struct pci_dev *pdev) | |||
4910 | hpsa_free_irqs_and_disable_msix(h); | 4907 | hpsa_free_irqs_and_disable_msix(h); |
4911 | } | 4908 | } |
4912 | 4909 | ||
4913 | static void __devexit hpsa_free_device_info(struct ctlr_info *h) | 4910 | static void hpsa_free_device_info(struct ctlr_info *h) |
4914 | { | 4911 | { |
4915 | int i; | 4912 | int i; |
4916 | 4913 | ||
@@ -4918,7 +4915,7 @@ static void __devexit hpsa_free_device_info(struct ctlr_info *h) | |||
4918 | kfree(h->dev[i]); | 4915 | kfree(h->dev[i]); |
4919 | } | 4916 | } |
4920 | 4917 | ||
4921 | static void __devexit hpsa_remove_one(struct pci_dev *pdev) | 4918 | static void hpsa_remove_one(struct pci_dev *pdev) |
4922 | { | 4919 | { |
4923 | struct ctlr_info *h; | 4920 | struct ctlr_info *h; |
4924 | 4921 | ||
@@ -4966,7 +4963,7 @@ static int hpsa_resume(__attribute__((unused)) struct pci_dev *pdev) | |||
4966 | static struct pci_driver hpsa_pci_driver = { | 4963 | static struct pci_driver hpsa_pci_driver = { |
4967 | .name = HPSA, | 4964 | .name = HPSA, |
4968 | .probe = hpsa_init_one, | 4965 | .probe = hpsa_init_one, |
4969 | .remove = __devexit_p(hpsa_remove_one), | 4966 | .remove = hpsa_remove_one, |
4970 | .id_table = hpsa_pci_device_id, /* id_table */ | 4967 | .id_table = hpsa_pci_device_id, /* id_table */ |
4971 | .shutdown = hpsa_shutdown, | 4968 | .shutdown = hpsa_shutdown, |
4972 | .suspend = hpsa_suspend, | 4969 | .suspend = hpsa_suspend, |
@@ -5010,8 +5007,7 @@ static void calc_bucket_map(int bucket[], int num_buckets, | |||
5010 | } | 5007 | } |
5011 | } | 5008 | } |
5012 | 5009 | ||
5013 | static __devinit void hpsa_enter_performant_mode(struct ctlr_info *h, | 5010 | static void hpsa_enter_performant_mode(struct ctlr_info *h, u32 use_short_tags) |
5014 | u32 use_short_tags) | ||
5015 | { | 5011 | { |
5016 | int i; | 5012 | int i; |
5017 | unsigned long register_value; | 5013 | unsigned long register_value; |
@@ -5079,7 +5075,7 @@ static __devinit void hpsa_enter_performant_mode(struct ctlr_info *h, | |||
5079 | h->transMethod = CFGTBL_Trans_Performant; | 5075 | h->transMethod = CFGTBL_Trans_Performant; |
5080 | } | 5076 | } |
5081 | 5077 | ||
5082 | static __devinit void hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h) | 5078 | static void hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h) |
5083 | { | 5079 | { |
5084 | u32 trans_support; | 5080 | u32 trans_support; |
5085 | int i; | 5081 | int i; |
diff --git a/drivers/scsi/hptiop.c b/drivers/scsi/hptiop.c index 138e573f37ef..ee196b363d81 100644 --- a/drivers/scsi/hptiop.c +++ b/drivers/scsi/hptiop.c | |||
@@ -1282,8 +1282,7 @@ static int hptiop_internal_memfree_mvfrey(struct hptiop_hba *hba) | |||
1282 | return -1; | 1282 | return -1; |
1283 | } | 1283 | } |
1284 | 1284 | ||
1285 | static int __devinit hptiop_probe(struct pci_dev *pcidev, | 1285 | static int hptiop_probe(struct pci_dev *pcidev, const struct pci_device_id *id) |
1286 | const struct pci_device_id *id) | ||
1287 | { | 1286 | { |
1288 | struct Scsi_Host *host = NULL; | 1287 | struct Scsi_Host *host = NULL; |
1289 | struct hptiop_hba *hba; | 1288 | struct hptiop_hba *hba; |
diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 5e8d51bd03de..cc82d0f322b6 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c | |||
@@ -4905,7 +4905,7 @@ static unsigned long ibmvfc_get_desired_dma(struct vio_dev *vdev) | |||
4905 | return pool_dma + ((512 * 1024) * driver_template.cmd_per_lun); | 4905 | return pool_dma + ((512 * 1024) * driver_template.cmd_per_lun); |
4906 | } | 4906 | } |
4907 | 4907 | ||
4908 | static struct vio_device_id ibmvfc_device_table[] __devinitdata = { | 4908 | static struct vio_device_id ibmvfc_device_table[] = { |
4909 | {"fcp", "IBM,vfc-client"}, | 4909 | {"fcp", "IBM,vfc-client"}, |
4910 | { "", "" } | 4910 | { "", "" } |
4911 | }; | 4911 | }; |
diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c index ef9a54c7da67..a044f593e8b9 100644 --- a/drivers/scsi/ibmvscsi/ibmvscsi.c +++ b/drivers/scsi/ibmvscsi/ibmvscsi.c | |||
@@ -2362,7 +2362,7 @@ static int ibmvscsi_resume(struct device *dev) | |||
2362 | * ibmvscsi_device_table: Used by vio.c to match devices in the device tree we | 2362 | * ibmvscsi_device_table: Used by vio.c to match devices in the device tree we |
2363 | * support. | 2363 | * support. |
2364 | */ | 2364 | */ |
2365 | static struct vio_device_id ibmvscsi_device_table[] __devinitdata = { | 2365 | static struct vio_device_id ibmvscsi_device_table[] = { |
2366 | {"vscsi", "IBM,v-scsi"}, | 2366 | {"vscsi", "IBM,v-scsi"}, |
2367 | { "", "" } | 2367 | { "", "" } |
2368 | }; | 2368 | }; |
diff --git a/drivers/scsi/ibmvscsi/ibmvstgt.c b/drivers/scsi/ibmvscsi/ibmvstgt.c index aa7ed81e9237..bf9eca845166 100644 --- a/drivers/scsi/ibmvscsi/ibmvstgt.c +++ b/drivers/scsi/ibmvscsi/ibmvstgt.c | |||
@@ -907,7 +907,7 @@ static int ibmvstgt_remove(struct vio_dev *dev) | |||
907 | return 0; | 907 | return 0; |
908 | } | 908 | } |
909 | 909 | ||
910 | static struct vio_device_id ibmvstgt_device_table[] __devinitdata = { | 910 | static struct vio_device_id ibmvstgt_device_table[] = { |
911 | {"v-scsi-host", "IBM,v-scsi-host"}, | 911 | {"v-scsi-host", "IBM,v-scsi-host"}, |
912 | {"",""} | 912 | {"",""} |
913 | }; | 913 | }; |
diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index dd741bcd6ccd..280d5af113d1 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c | |||
@@ -2992,7 +2992,7 @@ static struct pci_driver initio_pci_driver = { | |||
2992 | .name = "initio", | 2992 | .name = "initio", |
2993 | .id_table = initio_pci_tbl, | 2993 | .id_table = initio_pci_tbl, |
2994 | .probe = initio_probe_one, | 2994 | .probe = initio_probe_one, |
2995 | .remove = __devexit_p(initio_remove_one), | 2995 | .remove = initio_remove_one, |
2996 | }; | 2996 | }; |
2997 | 2997 | ||
2998 | static int __init initio_init_driver(void) | 2998 | static int __init initio_init_driver(void) |
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index fe6029f4df16..1d7da3f41ebb 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -8296,7 +8296,7 @@ static pci_ers_result_t ipr_pci_error_detected(struct pci_dev *pdev, | |||
8296 | * Return value: | 8296 | * Return value: |
8297 | * 0 on success / -EIO on failure | 8297 | * 0 on success / -EIO on failure |
8298 | **/ | 8298 | **/ |
8299 | static int __devinit ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg) | 8299 | static int ipr_probe_ioa_part2(struct ipr_ioa_cfg *ioa_cfg) |
8300 | { | 8300 | { |
8301 | int rc = 0; | 8301 | int rc = 0; |
8302 | unsigned long host_lock_flags = 0; | 8302 | unsigned long host_lock_flags = 0; |
@@ -8425,7 +8425,7 @@ static void ipr_free_all_resources(struct ipr_ioa_cfg *ioa_cfg) | |||
8425 | * Return value: | 8425 | * Return value: |
8426 | * 0 on success / -ENOMEM on allocation failure | 8426 | * 0 on success / -ENOMEM on allocation failure |
8427 | **/ | 8427 | **/ |
8428 | static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg) | 8428 | static int ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg) |
8429 | { | 8429 | { |
8430 | struct ipr_cmnd *ipr_cmd; | 8430 | struct ipr_cmnd *ipr_cmd; |
8431 | struct ipr_ioarcb *ioarcb; | 8431 | struct ipr_ioarcb *ioarcb; |
@@ -8497,7 +8497,7 @@ static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg) | |||
8497 | * Return value: | 8497 | * Return value: |
8498 | * 0 on success / non-zero for error | 8498 | * 0 on success / non-zero for error |
8499 | **/ | 8499 | **/ |
8500 | static int __devinit ipr_alloc_mem(struct ipr_ioa_cfg *ioa_cfg) | 8500 | static int ipr_alloc_mem(struct ipr_ioa_cfg *ioa_cfg) |
8501 | { | 8501 | { |
8502 | struct pci_dev *pdev = ioa_cfg->pdev; | 8502 | struct pci_dev *pdev = ioa_cfg->pdev; |
8503 | int i, rc = -ENOMEM; | 8503 | int i, rc = -ENOMEM; |
@@ -8601,7 +8601,7 @@ out_free_res_entries: | |||
8601 | * Return value: | 8601 | * Return value: |
8602 | * none | 8602 | * none |
8603 | **/ | 8603 | **/ |
8604 | static void __devinit ipr_initialize_bus_attr(struct ipr_ioa_cfg *ioa_cfg) | 8604 | static void ipr_initialize_bus_attr(struct ipr_ioa_cfg *ioa_cfg) |
8605 | { | 8605 | { |
8606 | int i; | 8606 | int i; |
8607 | 8607 | ||
@@ -8625,8 +8625,8 @@ static void __devinit ipr_initialize_bus_attr(struct ipr_ioa_cfg *ioa_cfg) | |||
8625 | * Return value: | 8625 | * Return value: |
8626 | * none | 8626 | * none |
8627 | **/ | 8627 | **/ |
8628 | static void __devinit ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, | 8628 | static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, |
8629 | struct Scsi_Host *host, struct pci_dev *pdev) | 8629 | struct Scsi_Host *host, struct pci_dev *pdev) |
8630 | { | 8630 | { |
8631 | const struct ipr_interrupt_offsets *p; | 8631 | const struct ipr_interrupt_offsets *p; |
8632 | struct ipr_interrupts *t; | 8632 | struct ipr_interrupts *t; |
@@ -8712,7 +8712,7 @@ static void __devinit ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, | |||
8712 | * Return value: | 8712 | * Return value: |
8713 | * ptr to chip information on success / NULL on failure | 8713 | * ptr to chip information on success / NULL on failure |
8714 | **/ | 8714 | **/ |
8715 | static const struct ipr_chip_t * __devinit | 8715 | static const struct ipr_chip_t * |
8716 | ipr_get_chip_info(const struct pci_device_id *dev_id) | 8716 | ipr_get_chip_info(const struct pci_device_id *dev_id) |
8717 | { | 8717 | { |
8718 | int i; | 8718 | int i; |
@@ -8734,7 +8734,7 @@ ipr_get_chip_info(const struct pci_device_id *dev_id) | |||
8734 | * Return value: | 8734 | * Return value: |
8735 | * 0 on success / non-zero on failure | 8735 | * 0 on success / non-zero on failure |
8736 | **/ | 8736 | **/ |
8737 | static irqreturn_t __devinit ipr_test_intr(int irq, void *devp) | 8737 | static irqreturn_t ipr_test_intr(int irq, void *devp) |
8738 | { | 8738 | { |
8739 | struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)devp; | 8739 | struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)devp; |
8740 | unsigned long lock_flags = 0; | 8740 | unsigned long lock_flags = 0; |
@@ -8761,8 +8761,7 @@ static irqreturn_t __devinit ipr_test_intr(int irq, void *devp) | |||
8761 | * Return value: | 8761 | * Return value: |
8762 | * 0 on success / non-zero on failure | 8762 | * 0 on success / non-zero on failure |
8763 | **/ | 8763 | **/ |
8764 | static int __devinit ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, | 8764 | static int ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev) |
8765 | struct pci_dev *pdev) | ||
8766 | { | 8765 | { |
8767 | int rc; | 8766 | int rc; |
8768 | volatile u32 int_reg; | 8767 | volatile u32 int_reg; |
@@ -8815,8 +8814,8 @@ static int __devinit ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, | |||
8815 | * Return value: | 8814 | * Return value: |
8816 | * 0 on success / non-zero on failure | 8815 | * 0 on success / non-zero on failure |
8817 | **/ | 8816 | **/ |
8818 | static int __devinit ipr_probe_ioa(struct pci_dev *pdev, | 8817 | static int ipr_probe_ioa(struct pci_dev *pdev, |
8819 | const struct pci_device_id *dev_id) | 8818 | const struct pci_device_id *dev_id) |
8820 | { | 8819 | { |
8821 | struct ipr_ioa_cfg *ioa_cfg; | 8820 | struct ipr_ioa_cfg *ioa_cfg; |
8822 | struct Scsi_Host *host; | 8821 | struct Scsi_Host *host; |
@@ -9113,7 +9112,7 @@ static void __ipr_remove(struct pci_dev *pdev) | |||
9113 | * Return value: | 9112 | * Return value: |
9114 | * none | 9113 | * none |
9115 | **/ | 9114 | **/ |
9116 | static void __devexit ipr_remove(struct pci_dev *pdev) | 9115 | static void ipr_remove(struct pci_dev *pdev) |
9117 | { | 9116 | { |
9118 | struct ipr_ioa_cfg *ioa_cfg = pci_get_drvdata(pdev); | 9117 | struct ipr_ioa_cfg *ioa_cfg = pci_get_drvdata(pdev); |
9119 | 9118 | ||
@@ -9136,8 +9135,7 @@ static void __devexit ipr_remove(struct pci_dev *pdev) | |||
9136 | * Return value: | 9135 | * Return value: |
9137 | * 0 on success / non-zero on failure | 9136 | * 0 on success / non-zero on failure |
9138 | **/ | 9137 | **/ |
9139 | static int __devinit ipr_probe(struct pci_dev *pdev, | 9138 | static int ipr_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) |
9140 | const struct pci_device_id *dev_id) | ||
9141 | { | 9139 | { |
9142 | struct ipr_ioa_cfg *ioa_cfg; | 9140 | struct ipr_ioa_cfg *ioa_cfg; |
9143 | int rc; | 9141 | int rc; |
@@ -9218,7 +9216,7 @@ static void ipr_shutdown(struct pci_dev *pdev) | |||
9218 | wait_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload); | 9216 | wait_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload); |
9219 | } | 9217 | } |
9220 | 9218 | ||
9221 | static struct pci_device_id ipr_pci_table[] __devinitdata = { | 9219 | static struct pci_device_id ipr_pci_table[] = { |
9222 | { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, | 9220 | { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, |
9223 | PCI_VENDOR_ID_IBM, IPR_SUBS_DEV_ID_5702, 0, 0, 0 }, | 9221 | PCI_VENDOR_ID_IBM, IPR_SUBS_DEV_ID_5702, 0, 0, 0 }, |
9224 | { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, | 9222 | { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, |
@@ -9305,7 +9303,7 @@ static struct pci_driver ipr_driver = { | |||
9305 | .name = IPR_NAME, | 9303 | .name = IPR_NAME, |
9306 | .id_table = ipr_pci_table, | 9304 | .id_table = ipr_pci_table, |
9307 | .probe = ipr_probe, | 9305 | .probe = ipr_probe, |
9308 | .remove = __devexit_p(ipr_remove), | 9306 | .remove = ipr_remove, |
9309 | .shutdown = ipr_shutdown, | 9307 | .shutdown = ipr_shutdown, |
9310 | .err_handler = &ipr_err_handler, | 9308 | .err_handler = &ipr_err_handler, |
9311 | }; | 9309 | }; |
diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index b6d7a5c2fc94..9aa86a315a08 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c | |||
@@ -389,14 +389,14 @@ MODULE_DEVICE_TABLE( pci, ips_pci_table ); | |||
389 | 389 | ||
390 | static char ips_hot_plug_name[] = "ips"; | 390 | static char ips_hot_plug_name[] = "ips"; |
391 | 391 | ||
392 | static int __devinit ips_insert_device(struct pci_dev *pci_dev, const struct pci_device_id *ent); | 392 | static int ips_insert_device(struct pci_dev *pci_dev, const struct pci_device_id *ent); |
393 | static void __devexit ips_remove_device(struct pci_dev *pci_dev); | 393 | static void ips_remove_device(struct pci_dev *pci_dev); |
394 | 394 | ||
395 | static struct pci_driver ips_pci_driver = { | 395 | static struct pci_driver ips_pci_driver = { |
396 | .name = ips_hot_plug_name, | 396 | .name = ips_hot_plug_name, |
397 | .id_table = ips_pci_table, | 397 | .id_table = ips_pci_table, |
398 | .probe = ips_insert_device, | 398 | .probe = ips_insert_device, |
399 | .remove = __devexit_p(ips_remove_device), | 399 | .remove = ips_remove_device, |
400 | }; | 400 | }; |
401 | 401 | ||
402 | 402 | ||
@@ -6837,7 +6837,7 @@ err_out_sh: | |||
6837 | /* Routine Description: */ | 6837 | /* Routine Description: */ |
6838 | /* Remove one Adapter ( Hot Plugging ) */ | 6838 | /* Remove one Adapter ( Hot Plugging ) */ |
6839 | /*---------------------------------------------------------------------------*/ | 6839 | /*---------------------------------------------------------------------------*/ |
6840 | static void __devexit | 6840 | static void |
6841 | ips_remove_device(struct pci_dev *pci_dev) | 6841 | ips_remove_device(struct pci_dev *pci_dev) |
6842 | { | 6842 | { |
6843 | struct Scsi_Host *sh = pci_get_drvdata(pci_dev); | 6843 | struct Scsi_Host *sh = pci_get_drvdata(pci_dev); |
@@ -6898,7 +6898,7 @@ module_exit(ips_module_exit); | |||
6898 | /* Return Value: */ | 6898 | /* Return Value: */ |
6899 | /* 0 if Successful, else non-zero */ | 6899 | /* 0 if Successful, else non-zero */ |
6900 | /*---------------------------------------------------------------------------*/ | 6900 | /*---------------------------------------------------------------------------*/ |
6901 | static int __devinit | 6901 | static int |
6902 | ips_insert_device(struct pci_dev *pci_dev, const struct pci_device_id *ent) | 6902 | ips_insert_device(struct pci_dev *pci_dev, const struct pci_device_id *ent) |
6903 | { | 6903 | { |
6904 | int index = -1; | 6904 | int index = -1; |
diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index b74050b95d6a..d73fdcfeb45a 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c | |||
@@ -282,7 +282,7 @@ static void isci_unregister(struct isci_host *isci_host) | |||
282 | scsi_host_put(shost); | 282 | scsi_host_put(shost); |
283 | } | 283 | } |
284 | 284 | ||
285 | static int __devinit isci_pci_init(struct pci_dev *pdev) | 285 | static int isci_pci_init(struct pci_dev *pdev) |
286 | { | 286 | { |
287 | int err, bar_num, bar_mask = 0; | 287 | int err, bar_num, bar_mask = 0; |
288 | void __iomem * const *iomap; | 288 | void __iomem * const *iomap; |
@@ -616,7 +616,7 @@ static struct isci_host *isci_host_alloc(struct pci_dev *pdev, int id) | |||
616 | return NULL; | 616 | return NULL; |
617 | } | 617 | } |
618 | 618 | ||
619 | static int __devinit isci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) | 619 | static int isci_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
620 | { | 620 | { |
621 | struct isci_pci_info *pci_info; | 621 | struct isci_pci_info *pci_info; |
622 | int err, i; | 622 | int err, i; |
@@ -709,7 +709,7 @@ static int __devinit isci_pci_probe(struct pci_dev *pdev, const struct pci_devic | |||
709 | return err; | 709 | return err; |
710 | } | 710 | } |
711 | 711 | ||
712 | static void __devexit isci_pci_remove(struct pci_dev *pdev) | 712 | static void isci_pci_remove(struct pci_dev *pdev) |
713 | { | 713 | { |
714 | struct isci_host *ihost; | 714 | struct isci_host *ihost; |
715 | int i; | 715 | int i; |
@@ -778,7 +778,7 @@ static struct pci_driver isci_pci_driver = { | |||
778 | .name = DRV_NAME, | 778 | .name = DRV_NAME, |
779 | .id_table = isci_id_table, | 779 | .id_table = isci_id_table, |
780 | .probe = isci_pci_probe, | 780 | .probe = isci_pci_probe, |
781 | .remove = __devexit_p(isci_pci_remove), | 781 | .remove = isci_pci_remove, |
782 | #ifdef CONFIG_PM | 782 | #ifdef CONFIG_PM |
783 | .driver.pm = &isci_pm_ops, | 783 | .driver.pm = &isci_pm_ops, |
784 | #endif | 784 | #endif |
diff --git a/drivers/scsi/jazz_esp.c b/drivers/scsi/jazz_esp.c index 27cfb0cb186c..69efbf12b299 100644 --- a/drivers/scsi/jazz_esp.c +++ b/drivers/scsi/jazz_esp.c | |||
@@ -129,7 +129,7 @@ static const struct esp_driver_ops jazz_esp_ops = { | |||
129 | .dma_error = jazz_esp_dma_error, | 129 | .dma_error = jazz_esp_dma_error, |
130 | }; | 130 | }; |
131 | 131 | ||
132 | static int __devinit esp_jazz_probe(struct platform_device *dev) | 132 | static int esp_jazz_probe(struct platform_device *dev) |
133 | { | 133 | { |
134 | struct scsi_host_template *tpnt = &scsi_esp_template; | 134 | struct scsi_host_template *tpnt = &scsi_esp_template; |
135 | struct Scsi_Host *host; | 135 | struct Scsi_Host *host; |
@@ -201,7 +201,7 @@ fail: | |||
201 | return err; | 201 | return err; |
202 | } | 202 | } |
203 | 203 | ||
204 | static int __devexit esp_jazz_remove(struct platform_device *dev) | 204 | static int esp_jazz_remove(struct platform_device *dev) |
205 | { | 205 | { |
206 | struct esp *esp = dev_get_drvdata(&dev->dev); | 206 | struct esp *esp = dev_get_drvdata(&dev->dev); |
207 | unsigned int irq = esp->host->irq; | 207 | unsigned int irq = esp->host->irq; |
@@ -223,7 +223,7 @@ MODULE_ALIAS("platform:jazz_esp"); | |||
223 | 223 | ||
224 | static struct platform_driver esp_jazz_driver = { | 224 | static struct platform_driver esp_jazz_driver = { |
225 | .probe = esp_jazz_probe, | 225 | .probe = esp_jazz_probe, |
226 | .remove = __devexit_p(esp_jazz_remove), | 226 | .remove = esp_jazz_remove, |
227 | .driver = { | 227 | .driver = { |
228 | .name = "jazz_esp", | 228 | .name = "jazz_esp", |
229 | .owner = THIS_MODULE, | 229 | .owner = THIS_MODULE, |
diff --git a/drivers/scsi/lasi700.c b/drivers/scsi/lasi700.c index 23880f8fe7e4..5c4ded997265 100644 --- a/drivers/scsi/lasi700.c +++ b/drivers/scsi/lasi700.c | |||
@@ -168,7 +168,7 @@ static struct parisc_driver lasi700_driver = { | |||
168 | .name = "lasi_scsi", | 168 | .name = "lasi_scsi", |
169 | .id_table = lasi700_ids, | 169 | .id_table = lasi700_ids, |
170 | .probe = lasi700_probe, | 170 | .probe = lasi700_probe, |
171 | .remove = __devexit_p(lasi700_driver_remove), | 171 | .remove = lasi700_driver_remove, |
172 | }; | 172 | }; |
173 | 173 | ||
174 | static int __init | 174 | static int __init |
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index c20eec78adc1..89ad55807012 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
@@ -8813,7 +8813,7 @@ lpfc_get_sli4_parameters(struct lpfc_hba *phba, LPFC_MBOXQ_t *mboxq) | |||
8813 | * 0 - driver can claim the device | 8813 | * 0 - driver can claim the device |
8814 | * negative value - driver can not claim the device | 8814 | * negative value - driver can not claim the device |
8815 | **/ | 8815 | **/ |
8816 | static int __devinit | 8816 | static int |
8817 | lpfc_pci_probe_one_s3(struct pci_dev *pdev, const struct pci_device_id *pid) | 8817 | lpfc_pci_probe_one_s3(struct pci_dev *pdev, const struct pci_device_id *pid) |
8818 | { | 8818 | { |
8819 | struct lpfc_hba *phba; | 8819 | struct lpfc_hba *phba; |
@@ -8980,7 +8980,7 @@ out_free_phba: | |||
8980 | * removed from PCI bus, it performs all the necessary cleanup for the HBA | 8980 | * removed from PCI bus, it performs all the necessary cleanup for the HBA |
8981 | * device to be removed from the PCI subsystem properly. | 8981 | * device to be removed from the PCI subsystem properly. |
8982 | **/ | 8982 | **/ |
8983 | static void __devexit | 8983 | static void |
8984 | lpfc_pci_remove_one_s3(struct pci_dev *pdev) | 8984 | lpfc_pci_remove_one_s3(struct pci_dev *pdev) |
8985 | { | 8985 | { |
8986 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 8986 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
@@ -9587,7 +9587,7 @@ lpfc_sli4_request_firmware_update(struct lpfc_hba *phba, uint8_t fw_upgrade) | |||
9587 | * 0 - driver can claim the device | 9587 | * 0 - driver can claim the device |
9588 | * negative value - driver can not claim the device | 9588 | * negative value - driver can not claim the device |
9589 | **/ | 9589 | **/ |
9590 | static int __devinit | 9590 | static int |
9591 | lpfc_pci_probe_one_s4(struct pci_dev *pdev, const struct pci_device_id *pid) | 9591 | lpfc_pci_probe_one_s4(struct pci_dev *pdev, const struct pci_device_id *pid) |
9592 | { | 9592 | { |
9593 | struct lpfc_hba *phba; | 9593 | struct lpfc_hba *phba; |
@@ -9779,7 +9779,7 @@ out_free_phba: | |||
9779 | * removed from PCI bus, it performs all the necessary cleanup for the HBA | 9779 | * removed from PCI bus, it performs all the necessary cleanup for the HBA |
9780 | * device to be removed from the PCI subsystem properly. | 9780 | * device to be removed from the PCI subsystem properly. |
9781 | **/ | 9781 | **/ |
9782 | static void __devexit | 9782 | static void |
9783 | lpfc_pci_remove_one_s4(struct pci_dev *pdev) | 9783 | lpfc_pci_remove_one_s4(struct pci_dev *pdev) |
9784 | { | 9784 | { |
9785 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 9785 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
@@ -10205,7 +10205,7 @@ lpfc_io_resume_s4(struct pci_dev *pdev) | |||
10205 | * 0 - driver can claim the device | 10205 | * 0 - driver can claim the device |
10206 | * negative value - driver can not claim the device | 10206 | * negative value - driver can not claim the device |
10207 | **/ | 10207 | **/ |
10208 | static int __devinit | 10208 | static int |
10209 | lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) | 10209 | lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) |
10210 | { | 10210 | { |
10211 | int rc; | 10211 | int rc; |
@@ -10233,7 +10233,7 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) | |||
10233 | * remove routine, which will perform all the necessary cleanup for the | 10233 | * remove routine, which will perform all the necessary cleanup for the |
10234 | * device to be removed from the PCI subsystem properly. | 10234 | * device to be removed from the PCI subsystem properly. |
10235 | **/ | 10235 | **/ |
10236 | static void __devexit | 10236 | static void |
10237 | lpfc_pci_remove_one(struct pci_dev *pdev) | 10237 | lpfc_pci_remove_one(struct pci_dev *pdev) |
10238 | { | 10238 | { |
10239 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 10239 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
@@ -10575,7 +10575,7 @@ static struct pci_driver lpfc_driver = { | |||
10575 | .name = LPFC_DRIVER_NAME, | 10575 | .name = LPFC_DRIVER_NAME, |
10576 | .id_table = lpfc_id_table, | 10576 | .id_table = lpfc_id_table, |
10577 | .probe = lpfc_pci_probe_one, | 10577 | .probe = lpfc_pci_probe_one, |
10578 | .remove = __devexit_p(lpfc_pci_remove_one), | 10578 | .remove = lpfc_pci_remove_one, |
10579 | .suspend = lpfc_pci_suspend_one, | 10579 | .suspend = lpfc_pci_suspend_one, |
10580 | .resume = lpfc_pci_resume_one, | 10580 | .resume = lpfc_pci_resume_one, |
10581 | .err_handler = &lpfc_err_handler, | 10581 | .err_handler = &lpfc_err_handler, |
diff --git a/drivers/scsi/mac_esp.c b/drivers/scsi/mac_esp.c index 70eb1f79b1ba..994fc5caf036 100644 --- a/drivers/scsi/mac_esp.c +++ b/drivers/scsi/mac_esp.c | |||
@@ -481,7 +481,7 @@ static struct esp_driver_ops mac_esp_ops = { | |||
481 | .dma_error = mac_esp_dma_error, | 481 | .dma_error = mac_esp_dma_error, |
482 | }; | 482 | }; |
483 | 483 | ||
484 | static int __devinit esp_mac_probe(struct platform_device *dev) | 484 | static int esp_mac_probe(struct platform_device *dev) |
485 | { | 485 | { |
486 | struct scsi_host_template *tpnt = &scsi_esp_template; | 486 | struct scsi_host_template *tpnt = &scsi_esp_template; |
487 | struct Scsi_Host *host; | 487 | struct Scsi_Host *host; |
@@ -591,7 +591,7 @@ fail: | |||
591 | return err; | 591 | return err; |
592 | } | 592 | } |
593 | 593 | ||
594 | static int __devexit esp_mac_remove(struct platform_device *dev) | 594 | static int esp_mac_remove(struct platform_device *dev) |
595 | { | 595 | { |
596 | struct mac_esp_priv *mep = platform_get_drvdata(dev); | 596 | struct mac_esp_priv *mep = platform_get_drvdata(dev); |
597 | struct esp *esp = mep->esp; | 597 | struct esp *esp = mep->esp; |
@@ -614,7 +614,7 @@ static int __devexit esp_mac_remove(struct platform_device *dev) | |||
614 | 614 | ||
615 | static struct platform_driver esp_mac_driver = { | 615 | static struct platform_driver esp_mac_driver = { |
616 | .probe = esp_mac_probe, | 616 | .probe = esp_mac_probe, |
617 | .remove = __devexit_p(esp_mac_remove), | 617 | .remove = esp_mac_remove, |
618 | .driver = { | 618 | .driver = { |
619 | .name = DRV_MODULE_NAME, | 619 | .name = DRV_MODULE_NAME, |
620 | .owner = THIS_MODULE, | 620 | .owner = THIS_MODULE, |
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 76ad72d32c3f..9504ec0ec682 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -4522,7 +4522,7 @@ static struct scsi_host_template megaraid_template = { | |||
4522 | .eh_host_reset_handler = megaraid_reset, | 4522 | .eh_host_reset_handler = megaraid_reset, |
4523 | }; | 4523 | }; |
4524 | 4524 | ||
4525 | static int __devinit | 4525 | static int |
4526 | megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | 4526 | megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
4527 | { | 4527 | { |
4528 | struct Scsi_Host *host; | 4528 | struct Scsi_Host *host; |
@@ -4914,7 +4914,7 @@ __megaraid_shutdown(adapter_t *adapter) | |||
4914 | mdelay(1000); | 4914 | mdelay(1000); |
4915 | } | 4915 | } |
4916 | 4916 | ||
4917 | static void __devexit | 4917 | static void |
4918 | megaraid_remove_one(struct pci_dev *pdev) | 4918 | megaraid_remove_one(struct pci_dev *pdev) |
4919 | { | 4919 | { |
4920 | struct Scsi_Host *host = pci_get_drvdata(pdev); | 4920 | struct Scsi_Host *host = pci_get_drvdata(pdev); |
@@ -5008,7 +5008,7 @@ static struct pci_driver megaraid_pci_driver = { | |||
5008 | .name = "megaraid_legacy", | 5008 | .name = "megaraid_legacy", |
5009 | .id_table = megaraid_pci_tbl, | 5009 | .id_table = megaraid_pci_tbl, |
5010 | .probe = megaraid_probe_one, | 5010 | .probe = megaraid_probe_one, |
5011 | .remove = __devexit_p(megaraid_remove_one), | 5011 | .remove = megaraid_remove_one, |
5012 | .shutdown = megaraid_shutdown, | 5012 | .shutdown = megaraid_shutdown, |
5013 | }; | 5013 | }; |
5014 | 5014 | ||
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index 54b1c5bb310f..e6a1e0b38a19 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c | |||
@@ -305,7 +305,7 @@ static struct pci_driver megaraid_pci_driver = { | |||
305 | .name = "megaraid", | 305 | .name = "megaraid", |
306 | .id_table = pci_id_table_g, | 306 | .id_table = pci_id_table_g, |
307 | .probe = megaraid_probe_one, | 307 | .probe = megaraid_probe_one, |
308 | .remove = __devexit_p(megaraid_detach_one), | 308 | .remove = megaraid_detach_one, |
309 | .shutdown = megaraid_mbox_shutdown, | 309 | .shutdown = megaraid_mbox_shutdown, |
310 | }; | 310 | }; |
311 | 311 | ||
@@ -434,7 +434,7 @@ megaraid_exit(void) | |||
434 | * This routine should be called whenever a new adapter is detected by the | 434 | * This routine should be called whenever a new adapter is detected by the |
435 | * PCI hotplug susbsystem. | 435 | * PCI hotplug susbsystem. |
436 | */ | 436 | */ |
437 | static int __devinit | 437 | static int |
438 | megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | 438 | megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
439 | { | 439 | { |
440 | adapter_t *adapter; | 440 | adapter_t *adapter; |
@@ -735,7 +735,7 @@ megaraid_io_detach(adapter_t *adapter) | |||
735 | * - Allocate memory required for all the commands | 735 | * - Allocate memory required for all the commands |
736 | * - Use internal library of FW routines, build up complete soft state | 736 | * - Use internal library of FW routines, build up complete soft state |
737 | */ | 737 | */ |
738 | static int __devinit | 738 | static int |
739 | megaraid_init_mbox(adapter_t *adapter) | 739 | megaraid_init_mbox(adapter_t *adapter) |
740 | { | 740 | { |
741 | struct pci_dev *pdev; | 741 | struct pci_dev *pdev; |
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index e4f2baacf1e1..66a0fec0437b 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c | |||
@@ -3972,8 +3972,8 @@ fail_set_dma_mask: | |||
3972 | * @pdev: PCI device structure | 3972 | * @pdev: PCI device structure |
3973 | * @id: PCI ids of supported hotplugged adapter | 3973 | * @id: PCI ids of supported hotplugged adapter |
3974 | */ | 3974 | */ |
3975 | static int __devinit | 3975 | static int megasas_probe_one(struct pci_dev *pdev, |
3976 | megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | 3976 | const struct pci_device_id *id) |
3977 | { | 3977 | { |
3978 | int rval, pos, i, j; | 3978 | int rval, pos, i, j; |
3979 | struct Scsi_Host *host; | 3979 | struct Scsi_Host *host; |
@@ -4525,7 +4525,7 @@ fail_ready_state: | |||
4525 | * megasas_detach_one - PCI hot"un"plug entry point | 4525 | * megasas_detach_one - PCI hot"un"plug entry point |
4526 | * @pdev: PCI device structure | 4526 | * @pdev: PCI device structure |
4527 | */ | 4527 | */ |
4528 | static void __devexit megasas_detach_one(struct pci_dev *pdev) | 4528 | static void megasas_detach_one(struct pci_dev *pdev) |
4529 | { | 4529 | { |
4530 | int i; | 4530 | int i; |
4531 | struct Scsi_Host *host; | 4531 | struct Scsi_Host *host; |
@@ -5119,7 +5119,7 @@ static struct pci_driver megasas_pci_driver = { | |||
5119 | .name = "megaraid_sas", | 5119 | .name = "megaraid_sas", |
5120 | .id_table = megasas_pci_table, | 5120 | .id_table = megasas_pci_table, |
5121 | .probe = megasas_probe_one, | 5121 | .probe = megasas_probe_one, |
5122 | .remove = __devexit_p(megasas_detach_one), | 5122 | .remove = megasas_detach_one, |
5123 | .suspend = megasas_suspend, | 5123 | .suspend = megasas_suspend, |
5124 | .resume = megasas_resume, | 5124 | .resume = megasas_resume, |
5125 | .shutdown = megasas_shutdown, | 5125 | .shutdown = megasas_shutdown, |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index af4e6c451b1b..c6bdc9267229 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -7686,7 +7686,7 @@ _scsih_shutdown(struct pci_dev *pdev) | |||
7686 | * Routine called when unloading the driver. | 7686 | * Routine called when unloading the driver. |
7687 | * Return nothing. | 7687 | * Return nothing. |
7688 | */ | 7688 | */ |
7689 | static void __devexit | 7689 | static void |
7690 | _scsih_remove(struct pci_dev *pdev) | 7690 | _scsih_remove(struct pci_dev *pdev) |
7691 | { | 7691 | { |
7692 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 7692 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
@@ -8338,7 +8338,7 @@ static struct pci_driver scsih_driver = { | |||
8338 | .name = MPT2SAS_DRIVER_NAME, | 8338 | .name = MPT2SAS_DRIVER_NAME, |
8339 | .id_table = scsih_pci_table, | 8339 | .id_table = scsih_pci_table, |
8340 | .probe = _scsih_probe, | 8340 | .probe = _scsih_probe, |
8341 | .remove = __devexit_p(_scsih_remove), | 8341 | .remove = _scsih_remove, |
8342 | .shutdown = _scsih_shutdown, | 8342 | .shutdown = _scsih_shutdown, |
8343 | .err_handler = &_scsih_err_handler, | 8343 | .err_handler = &_scsih_err_handler, |
8344 | #ifdef CONFIG_PM | 8344 | #ifdef CONFIG_PM |
diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index 05f80450ac7e..6421a06c4ce2 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c | |||
@@ -7374,8 +7374,7 @@ _scsih_ir_shutdown(struct MPT3SAS_ADAPTER *ioc) | |||
7374 | * Routine called when unloading the driver. | 7374 | * Routine called when unloading the driver. |
7375 | * Return nothing. | 7375 | * Return nothing. |
7376 | */ | 7376 | */ |
7377 | static void __devexit | 7377 | static void _scsih_remove(struct pci_dev *pdev) |
7378 | _scsih_remove(struct pci_dev *pdev) | ||
7379 | { | 7378 | { |
7380 | struct Scsi_Host *shost = pci_get_drvdata(pdev); | 7379 | struct Scsi_Host *shost = pci_get_drvdata(pdev); |
7381 | struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); | 7380 | struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); |
@@ -8044,7 +8043,7 @@ static struct pci_driver scsih_driver = { | |||
8044 | .name = MPT3SAS_DRIVER_NAME, | 8043 | .name = MPT3SAS_DRIVER_NAME, |
8045 | .id_table = scsih_pci_table, | 8044 | .id_table = scsih_pci_table, |
8046 | .probe = _scsih_probe, | 8045 | .probe = _scsih_probe, |
8047 | .remove = __devexit_p(_scsih_remove), | 8046 | .remove = _scsih_remove, |
8048 | .shutdown = _scsih_shutdown, | 8047 | .shutdown = _scsih_shutdown, |
8049 | .err_handler = &_scsih_err_handler, | 8048 | .err_handler = &_scsih_err_handler, |
8050 | #ifdef CONFIG_PM | 8049 | #ifdef CONFIG_PM |
diff --git a/drivers/scsi/mvme16x_scsi.c b/drivers/scsi/mvme16x_scsi.c index 39f554f5f261..8fbb97a8bfd3 100644 --- a/drivers/scsi/mvme16x_scsi.c +++ b/drivers/scsi/mvme16x_scsi.c | |||
@@ -34,8 +34,7 @@ static struct scsi_host_template mvme16x_scsi_driver_template = { | |||
34 | 34 | ||
35 | static struct platform_device *mvme16x_scsi_device; | 35 | static struct platform_device *mvme16x_scsi_device; |
36 | 36 | ||
37 | static __devinit int | 37 | static int mvme16x_probe(struct platform_device *dev) |
38 | mvme16x_probe(struct platform_device *dev) | ||
39 | { | 38 | { |
40 | struct Scsi_Host * host = NULL; | 39 | struct Scsi_Host * host = NULL; |
41 | struct NCR_700_Host_Parameters *hostdata; | 40 | struct NCR_700_Host_Parameters *hostdata; |
@@ -103,8 +102,7 @@ mvme16x_probe(struct platform_device *dev) | |||
103 | return -ENODEV; | 102 | return -ENODEV; |
104 | } | 103 | } |
105 | 104 | ||
106 | static __devexit int | 105 | static int mvme16x_device_remove(struct platform_device *dev) |
107 | mvme16x_device_remove(struct platform_device *dev) | ||
108 | { | 106 | { |
109 | struct Scsi_Host *host = platform_get_drvdata(dev); | 107 | struct Scsi_Host *host = platform_get_drvdata(dev); |
110 | struct NCR_700_Host_Parameters *hostdata = shost_priv(host); | 108 | struct NCR_700_Host_Parameters *hostdata = shost_priv(host); |
@@ -131,7 +129,7 @@ static struct platform_driver mvme16x_scsi_driver = { | |||
131 | .owner = THIS_MODULE, | 129 | .owner = THIS_MODULE, |
132 | }, | 130 | }, |
133 | .probe = mvme16x_probe, | 131 | .probe = mvme16x_probe, |
134 | .remove = __devexit_p(mvme16x_device_remove), | 132 | .remove = mvme16x_device_remove, |
135 | }; | 133 | }; |
136 | 134 | ||
137 | static int __init mvme16x_scsi_init(void) | 135 | static int __init mvme16x_scsi_init(void) |
diff --git a/drivers/scsi/mvsas/mv_64xx.c b/drivers/scsi/mvsas/mv_64xx.c index 8ba47229049f..8bb06995adfb 100644 --- a/drivers/scsi/mvsas/mv_64xx.c +++ b/drivers/scsi/mvsas/mv_64xx.c | |||
@@ -41,7 +41,7 @@ static void mvs_64xx_detect_porttype(struct mvs_info *mvi, int i) | |||
41 | phy->phy_type |= PORT_TYPE_SATA; | 41 | phy->phy_type |= PORT_TYPE_SATA; |
42 | } | 42 | } |
43 | 43 | ||
44 | static void __devinit mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) | 44 | static void mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) |
45 | { | 45 | { |
46 | void __iomem *regs = mvi->regs; | 46 | void __iomem *regs = mvi->regs; |
47 | u32 tmp; | 47 | u32 tmp; |
@@ -54,7 +54,7 @@ static void __devinit mvs_64xx_enable_xmt(struct mvs_info *mvi, int phy_id) | |||
54 | mw32(MVS_PCS, tmp); | 54 | mw32(MVS_PCS, tmp); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void __devinit mvs_64xx_phy_hacks(struct mvs_info *mvi) | 57 | static void mvs_64xx_phy_hacks(struct mvs_info *mvi) |
58 | { | 58 | { |
59 | void __iomem *regs = mvi->regs; | 59 | void __iomem *regs = mvi->regs; |
60 | int i; | 60 | int i; |
@@ -156,7 +156,7 @@ void mvs_64xx_clear_srs_irq(struct mvs_info *mvi, u8 reg_set, u8 clear_all) | |||
156 | } | 156 | } |
157 | } | 157 | } |
158 | 158 | ||
159 | static int __devinit mvs_64xx_chip_reset(struct mvs_info *mvi) | 159 | static int mvs_64xx_chip_reset(struct mvs_info *mvi) |
160 | { | 160 | { |
161 | void __iomem *regs = mvi->regs; | 161 | void __iomem *regs = mvi->regs; |
162 | u32 tmp; | 162 | u32 tmp; |
@@ -250,7 +250,7 @@ static void mvs_64xx_phy_enable(struct mvs_info *mvi, u32 phy_id) | |||
250 | } | 250 | } |
251 | } | 251 | } |
252 | 252 | ||
253 | static int __devinit mvs_64xx_init(struct mvs_info *mvi) | 253 | static int mvs_64xx_init(struct mvs_info *mvi) |
254 | { | 254 | { |
255 | void __iomem *regs = mvi->regs; | 255 | void __iomem *regs = mvi->regs; |
256 | int i; | 256 | int i; |
diff --git a/drivers/scsi/mvsas/mv_94xx.c b/drivers/scsi/mvsas/mv_94xx.c index 7e423e5ad5e1..1e4479f3331a 100644 --- a/drivers/scsi/mvsas/mv_94xx.c +++ b/drivers/scsi/mvsas/mv_94xx.c | |||
@@ -216,8 +216,7 @@ void set_phy_rate(struct mvs_info *mvi, int phy_id, u8 rate) | |||
216 | mvs_write_port_vsr_data(mvi, phy_id, phy_cfg.v); | 216 | mvs_write_port_vsr_data(mvi, phy_id, phy_cfg.v); |
217 | } | 217 | } |
218 | 218 | ||
219 | static void __devinit | 219 | static void mvs_94xx_config_reg_from_hba(struct mvs_info *mvi, int phy_id) |
220 | mvs_94xx_config_reg_from_hba(struct mvs_info *mvi, int phy_id) | ||
221 | { | 220 | { |
222 | u32 temp; | 221 | u32 temp; |
223 | temp = (u32)(*(u32 *)&mvi->hba_info_param.phy_tuning[phy_id]); | 222 | temp = (u32)(*(u32 *)&mvi->hba_info_param.phy_tuning[phy_id]); |
@@ -258,7 +257,7 @@ mvs_94xx_config_reg_from_hba(struct mvs_info *mvi, int phy_id) | |||
258 | mvi->hba_info_param.phy_rate[phy_id]); | 257 | mvi->hba_info_param.phy_rate[phy_id]); |
259 | } | 258 | } |
260 | 259 | ||
261 | static void __devinit mvs_94xx_enable_xmt(struct mvs_info *mvi, int phy_id) | 260 | static void mvs_94xx_enable_xmt(struct mvs_info *mvi, int phy_id) |
262 | { | 261 | { |
263 | void __iomem *regs = mvi->regs; | 262 | void __iomem *regs = mvi->regs; |
264 | u32 tmp; | 263 | u32 tmp; |
@@ -331,7 +330,7 @@ static void mvs_94xx_phy_enable(struct mvs_info *mvi, u32 phy_id) | |||
331 | mvs_write_port_vsr_data(mvi, phy_id, tmp & 0xfd7fffff); | 330 | mvs_write_port_vsr_data(mvi, phy_id, tmp & 0xfd7fffff); |
332 | } | 331 | } |
333 | 332 | ||
334 | static int __devinit mvs_94xx_init(struct mvs_info *mvi) | 333 | static int mvs_94xx_init(struct mvs_info *mvi) |
335 | { | 334 | { |
336 | void __iomem *regs = mvi->regs; | 335 | void __iomem *regs = mvi->regs; |
337 | int i; | 336 | int i; |
diff --git a/drivers/scsi/mvsas/mv_chips.h b/drivers/scsi/mvsas/mv_chips.h index bcc408042cee..8c4479ab49e8 100644 --- a/drivers/scsi/mvsas/mv_chips.h +++ b/drivers/scsi/mvsas/mv_chips.h | |||
@@ -160,7 +160,7 @@ static inline void mvs_write_port_irq_mask(struct mvs_info *mvi, | |||
160 | MVS_P4_INT_MASK, port, val); | 160 | MVS_P4_INT_MASK, port, val); |
161 | } | 161 | } |
162 | 162 | ||
163 | static inline void __devinit mvs_phy_hacks(struct mvs_info *mvi) | 163 | static inline void mvs_phy_hacks(struct mvs_info *mvi) |
164 | { | 164 | { |
165 | u32 tmp; | 165 | u32 tmp; |
166 | 166 | ||
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index cc59dff3810b..ce90d0546cdd 100644 --- a/drivers/scsi/mvsas/mv_init.c +++ b/drivers/scsi/mvsas/mv_init.c | |||
@@ -96,7 +96,7 @@ static struct sas_domain_function_template mvs_transport_ops = { | |||
96 | 96 | ||
97 | }; | 97 | }; |
98 | 98 | ||
99 | static void __devinit mvs_phy_init(struct mvs_info *mvi, int phy_id) | 99 | static void mvs_phy_init(struct mvs_info *mvi, int phy_id) |
100 | { | 100 | { |
101 | struct mvs_phy *phy = &mvi->phy[phy_id]; | 101 | struct mvs_phy *phy = &mvi->phy[phy_id]; |
102 | struct asd_sas_phy *sas_phy = &phy->sas_phy; | 102 | struct asd_sas_phy *sas_phy = &phy->sas_phy; |
@@ -235,7 +235,7 @@ static irqreturn_t mvs_interrupt(int irq, void *opaque) | |||
235 | return IRQ_HANDLED; | 235 | return IRQ_HANDLED; |
236 | } | 236 | } |
237 | 237 | ||
238 | static int __devinit mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) | 238 | static int mvs_alloc(struct mvs_info *mvi, struct Scsi_Host *shost) |
239 | { | 239 | { |
240 | int i = 0, slot_nr; | 240 | int i = 0, slot_nr; |
241 | char pool_name[32]; | 241 | char pool_name[32]; |
@@ -373,7 +373,7 @@ void mvs_iounmap(void __iomem *regs) | |||
373 | iounmap(regs); | 373 | iounmap(regs); |
374 | } | 374 | } |
375 | 375 | ||
376 | static struct mvs_info *__devinit mvs_pci_alloc(struct pci_dev *pdev, | 376 | static struct mvs_info *mvs_pci_alloc(struct pci_dev *pdev, |
377 | const struct pci_device_id *ent, | 377 | const struct pci_device_id *ent, |
378 | struct Scsi_Host *shost, unsigned int id) | 378 | struct Scsi_Host *shost, unsigned int id) |
379 | { | 379 | { |
@@ -444,7 +444,7 @@ static int pci_go_64(struct pci_dev *pdev) | |||
444 | return rc; | 444 | return rc; |
445 | } | 445 | } |
446 | 446 | ||
447 | static int __devinit mvs_prep_sas_ha_init(struct Scsi_Host *shost, | 447 | static int mvs_prep_sas_ha_init(struct Scsi_Host *shost, |
448 | const struct mvs_chip_info *chip_info) | 448 | const struct mvs_chip_info *chip_info) |
449 | { | 449 | { |
450 | int phy_nr, port_nr; unsigned short core_nr; | 450 | int phy_nr, port_nr; unsigned short core_nr; |
@@ -486,7 +486,7 @@ exit_free: | |||
486 | 486 | ||
487 | } | 487 | } |
488 | 488 | ||
489 | static void __devinit mvs_post_sas_ha_init(struct Scsi_Host *shost, | 489 | static void mvs_post_sas_ha_init(struct Scsi_Host *shost, |
490 | const struct mvs_chip_info *chip_info) | 490 | const struct mvs_chip_info *chip_info) |
491 | { | 491 | { |
492 | int can_queue, i = 0, j = 0; | 492 | int can_queue, i = 0, j = 0; |
@@ -537,8 +537,7 @@ static void mvs_init_sas_add(struct mvs_info *mvi) | |||
537 | memcpy(mvi->sas_addr, &mvi->phy[0].dev_sas_addr, SAS_ADDR_SIZE); | 537 | memcpy(mvi->sas_addr, &mvi->phy[0].dev_sas_addr, SAS_ADDR_SIZE); |
538 | } | 538 | } |
539 | 539 | ||
540 | static int __devinit mvs_pci_init(struct pci_dev *pdev, | 540 | static int mvs_pci_init(struct pci_dev *pdev, const struct pci_device_id *ent) |
541 | const struct pci_device_id *ent) | ||
542 | { | 541 | { |
543 | unsigned int rc, nhost = 0; | 542 | unsigned int rc, nhost = 0; |
544 | struct mvs_info *mvi; | 543 | struct mvs_info *mvi; |
@@ -645,7 +644,7 @@ err_out_enable: | |||
645 | return rc; | 644 | return rc; |
646 | } | 645 | } |
647 | 646 | ||
648 | static void __devexit mvs_pci_remove(struct pci_dev *pdev) | 647 | static void mvs_pci_remove(struct pci_dev *pdev) |
649 | { | 648 | { |
650 | unsigned short core_nr, i = 0; | 649 | unsigned short core_nr, i = 0; |
651 | struct sas_ha_struct *sha = pci_get_drvdata(pdev); | 650 | struct sas_ha_struct *sha = pci_get_drvdata(pdev); |
@@ -677,7 +676,7 @@ static void __devexit mvs_pci_remove(struct pci_dev *pdev) | |||
677 | return; | 676 | return; |
678 | } | 677 | } |
679 | 678 | ||
680 | static struct pci_device_id __devinitdata mvs_pci_table[] = { | 679 | static struct pci_device_id mvs_pci_table[] = { |
681 | { PCI_VDEVICE(MARVELL, 0x6320), chip_6320 }, | 680 | { PCI_VDEVICE(MARVELL, 0x6320), chip_6320 }, |
682 | { PCI_VDEVICE(MARVELL, 0x6340), chip_6440 }, | 681 | { PCI_VDEVICE(MARVELL, 0x6340), chip_6440 }, |
683 | { | 682 | { |
@@ -748,7 +747,7 @@ static struct pci_driver mvs_pci_driver = { | |||
748 | .name = DRV_NAME, | 747 | .name = DRV_NAME, |
749 | .id_table = mvs_pci_table, | 748 | .id_table = mvs_pci_table, |
750 | .probe = mvs_pci_init, | 749 | .probe = mvs_pci_init, |
751 | .remove = __devexit_p(mvs_pci_remove), | 750 | .remove = mvs_pci_remove, |
752 | }; | 751 | }; |
753 | 752 | ||
754 | static ssize_t | 753 | static ssize_t |
diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c index a3776d6ced60..078c63913b55 100644 --- a/drivers/scsi/mvsas/mv_sas.c +++ b/drivers/scsi/mvsas/mv_sas.c | |||
@@ -220,8 +220,8 @@ int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, | |||
220 | return rc; | 220 | return rc; |
221 | } | 221 | } |
222 | 222 | ||
223 | void __devinit mvs_set_sas_addr(struct mvs_info *mvi, int port_id, | 223 | void mvs_set_sas_addr(struct mvs_info *mvi, int port_id, u32 off_lo, |
224 | u32 off_lo, u32 off_hi, u64 sas_addr) | 224 | u32 off_hi, u64 sas_addr) |
225 | { | 225 | { |
226 | u32 lo = (u32)sas_addr; | 226 | u32 lo = (u32)sas_addr; |
227 | u32 hi = (u32)(sas_addr>>32); | 227 | u32 hi = (u32)(sas_addr>>32); |
diff --git a/drivers/scsi/mvsas/mv_sas.h b/drivers/scsi/mvsas/mv_sas.h index da249553858c..2ae77a0394b2 100644 --- a/drivers/scsi/mvsas/mv_sas.h +++ b/drivers/scsi/mvsas/mv_sas.h | |||
@@ -456,8 +456,8 @@ int mvs_ioremap(struct mvs_info *mvi, int bar, int bar_ex); | |||
456 | void mvs_phys_reset(struct mvs_info *mvi, u32 phy_mask, int hard); | 456 | void mvs_phys_reset(struct mvs_info *mvi, u32 phy_mask, int hard); |
457 | int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, | 457 | int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, |
458 | void *funcdata); | 458 | void *funcdata); |
459 | void __devinit mvs_set_sas_addr(struct mvs_info *mvi, int port_id, | 459 | void mvs_set_sas_addr(struct mvs_info *mvi, int port_id, u32 off_lo, |
460 | u32 off_lo, u32 off_hi, u64 sas_addr); | 460 | u32 off_hi, u64 sas_addr); |
461 | void mvs_scan_start(struct Scsi_Host *shost); | 461 | void mvs_scan_start(struct Scsi_Host *shost); |
462 | int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time); | 462 | int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time); |
463 | int mvs_queue_command(struct sas_task *task, const int num, | 463 | int mvs_queue_command(struct sas_task *task, const int num, |
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index c585a925b3cd..4594ccaaf49b 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c | |||
@@ -2506,8 +2506,7 @@ fail_add_device: | |||
2506 | * @pdev: PCI device structure | 2506 | * @pdev: PCI device structure |
2507 | * @id: PCI ids of supported hotplugged adapter | 2507 | * @id: PCI ids of supported hotplugged adapter |
2508 | */ | 2508 | */ |
2509 | static int __devinit mvumi_probe_one(struct pci_dev *pdev, | 2509 | static int mvumi_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
2510 | const struct pci_device_id *id) | ||
2511 | { | 2510 | { |
2512 | struct Scsi_Host *host; | 2511 | struct Scsi_Host *host; |
2513 | struct mvumi_hba *mhba; | 2512 | struct mvumi_hba *mhba; |
@@ -2728,7 +2727,7 @@ static struct pci_driver mvumi_pci_driver = { | |||
2728 | .name = MV_DRIVER_NAME, | 2727 | .name = MV_DRIVER_NAME, |
2729 | .id_table = mvumi_pci_table, | 2728 | .id_table = mvumi_pci_table, |
2730 | .probe = mvumi_probe_one, | 2729 | .probe = mvumi_probe_one, |
2731 | .remove = __devexit_p(mvumi_detach_one), | 2730 | .remove = mvumi_detach_one, |
2732 | .shutdown = mvumi_shutdown, | 2731 | .shutdown = mvumi_shutdown, |
2733 | #ifdef CONFIG_PM | 2732 | #ifdef CONFIG_PM |
2734 | .suspend = mvumi_suspend, | 2733 | .suspend = mvumi_suspend, |
diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c index 62b616891a33..1cc0c1c69c88 100644 --- a/drivers/scsi/nsp32.c +++ b/drivers/scsi/nsp32.c | |||
@@ -76,7 +76,7 @@ static const char *nsp32_release_version = "1.2"; | |||
76 | /**************************************************************************** | 76 | /**************************************************************************** |
77 | * Supported hardware | 77 | * Supported hardware |
78 | */ | 78 | */ |
79 | static struct pci_device_id nsp32_pci_table[] __devinitdata = { | 79 | static struct pci_device_id nsp32_pci_table[] = { |
80 | { | 80 | { |
81 | .vendor = PCI_VENDOR_ID_IODATA, | 81 | .vendor = PCI_VENDOR_ID_IODATA, |
82 | .device = PCI_DEVICE_ID_NINJASCSI_32BI_CBSC_II, | 82 | .device = PCI_DEVICE_ID_NINJASCSI_32BI_CBSC_II, |
@@ -186,10 +186,10 @@ static nsp32_sync_table nsp32_sync_table_pci[] = { | |||
186 | * function declaration | 186 | * function declaration |
187 | */ | 187 | */ |
188 | /* module entry point */ | 188 | /* module entry point */ |
189 | static int __devinit nsp32_probe (struct pci_dev *, const struct pci_device_id *); | 189 | static int nsp32_probe (struct pci_dev *, const struct pci_device_id *); |
190 | static void __devexit nsp32_remove(struct pci_dev *); | 190 | static void nsp32_remove(struct pci_dev *); |
191 | static int __init init_nsp32 (void); | 191 | static int __init init_nsp32 (void); |
192 | static void __exit exit_nsp32 (void); | 192 | static void __exit exit_nsp32 (void); |
193 | 193 | ||
194 | /* struct struct scsi_host_template */ | 194 | /* struct struct scsi_host_template */ |
195 | static int nsp32_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int); | 195 | static int nsp32_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int); |
@@ -3382,7 +3382,7 @@ static int nsp32_resume(struct pci_dev *pdev) | |||
3382 | /************************************************************************ | 3382 | /************************************************************************ |
3383 | * PCI/Cardbus probe/remove routine | 3383 | * PCI/Cardbus probe/remove routine |
3384 | */ | 3384 | */ |
3385 | static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_id *id) | 3385 | static int nsp32_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
3386 | { | 3386 | { |
3387 | int ret; | 3387 | int ret; |
3388 | nsp32_hw_data *data = &nsp32_data_base; | 3388 | nsp32_hw_data *data = &nsp32_data_base; |
@@ -3418,7 +3418,7 @@ static int __devinit nsp32_probe(struct pci_dev *pdev, const struct pci_device_i | |||
3418 | return ret; | 3418 | return ret; |
3419 | } | 3419 | } |
3420 | 3420 | ||
3421 | static void __devexit nsp32_remove(struct pci_dev *pdev) | 3421 | static void nsp32_remove(struct pci_dev *pdev) |
3422 | { | 3422 | { |
3423 | struct Scsi_Host *host = pci_get_drvdata(pdev); | 3423 | struct Scsi_Host *host = pci_get_drvdata(pdev); |
3424 | 3424 | ||
@@ -3435,7 +3435,7 @@ static struct pci_driver nsp32_driver = { | |||
3435 | .name = "nsp32", | 3435 | .name = "nsp32", |
3436 | .id_table = nsp32_pci_table, | 3436 | .id_table = nsp32_pci_table, |
3437 | .probe = nsp32_probe, | 3437 | .probe = nsp32_probe, |
3438 | .remove = __devexit_p(nsp32_remove), | 3438 | .remove = nsp32_remove, |
3439 | #ifdef CONFIG_PM | 3439 | #ifdef CONFIG_PM |
3440 | .suspend = nsp32_suspend, | 3440 | .suspend = nsp32_suspend, |
3441 | .resume = nsp32_resume, | 3441 | .resume = nsp32_resume, |
diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index bf54aafc2d71..b8dd05074abb 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c | |||
@@ -47,7 +47,7 @@ | |||
47 | * read_main_config_table - read the configure table and save it. | 47 | * read_main_config_table - read the configure table and save it. |
48 | * @pm8001_ha: our hba card information | 48 | * @pm8001_ha: our hba card information |
49 | */ | 49 | */ |
50 | static void __devinit read_main_config_table(struct pm8001_hba_info *pm8001_ha) | 50 | static void read_main_config_table(struct pm8001_hba_info *pm8001_ha) |
51 | { | 51 | { |
52 | void __iomem *address = pm8001_ha->main_cfg_tbl_addr; | 52 | void __iomem *address = pm8001_ha->main_cfg_tbl_addr; |
53 | pm8001_ha->main_cfg_tbl.signature = pm8001_mr32(address, 0x00); | 53 | pm8001_ha->main_cfg_tbl.signature = pm8001_mr32(address, 0x00); |
@@ -83,8 +83,7 @@ static void __devinit read_main_config_table(struct pm8001_hba_info *pm8001_ha) | |||
83 | * read_general_status_table - read the general status table and save it. | 83 | * read_general_status_table - read the general status table and save it. |
84 | * @pm8001_ha: our hba card information | 84 | * @pm8001_ha: our hba card information |
85 | */ | 85 | */ |
86 | static void __devinit | 86 | static void read_general_status_table(struct pm8001_hba_info *pm8001_ha) |
87 | read_general_status_table(struct pm8001_hba_info *pm8001_ha) | ||
88 | { | 87 | { |
89 | void __iomem *address = pm8001_ha->general_stat_tbl_addr; | 88 | void __iomem *address = pm8001_ha->general_stat_tbl_addr; |
90 | pm8001_ha->gs_tbl.gst_len_mpistate = pm8001_mr32(address, 0x00); | 89 | pm8001_ha->gs_tbl.gst_len_mpistate = pm8001_mr32(address, 0x00); |
@@ -118,8 +117,7 @@ read_general_status_table(struct pm8001_hba_info *pm8001_ha) | |||
118 | * read_inbnd_queue_table - read the inbound queue table and save it. | 117 | * read_inbnd_queue_table - read the inbound queue table and save it. |
119 | * @pm8001_ha: our hba card information | 118 | * @pm8001_ha: our hba card information |
120 | */ | 119 | */ |
121 | static void __devinit | 120 | static void read_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha) |
122 | read_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha) | ||
123 | { | 121 | { |
124 | int inbQ_num = 1; | 122 | int inbQ_num = 1; |
125 | int i; | 123 | int i; |
@@ -137,8 +135,7 @@ read_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha) | |||
137 | * read_outbnd_queue_table - read the outbound queue table and save it. | 135 | * read_outbnd_queue_table - read the outbound queue table and save it. |
138 | * @pm8001_ha: our hba card information | 136 | * @pm8001_ha: our hba card information |
139 | */ | 137 | */ |
140 | static void __devinit | 138 | static void read_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha) |
141 | read_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha) | ||
142 | { | 139 | { |
143 | int outbQ_num = 1; | 140 | int outbQ_num = 1; |
144 | int i; | 141 | int i; |
@@ -156,8 +153,7 @@ read_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha) | |||
156 | * init_default_table_values - init the default table. | 153 | * init_default_table_values - init the default table. |
157 | * @pm8001_ha: our hba card information | 154 | * @pm8001_ha: our hba card information |
158 | */ | 155 | */ |
159 | static void __devinit | 156 | static void init_default_table_values(struct pm8001_hba_info *pm8001_ha) |
160 | init_default_table_values(struct pm8001_hba_info *pm8001_ha) | ||
161 | { | 157 | { |
162 | int qn = 1; | 158 | int qn = 1; |
163 | int i; | 159 | int i; |
@@ -250,8 +246,7 @@ init_default_table_values(struct pm8001_hba_info *pm8001_ha) | |||
250 | * update_main_config_table - update the main default table to the HBA. | 246 | * update_main_config_table - update the main default table to the HBA. |
251 | * @pm8001_ha: our hba card information | 247 | * @pm8001_ha: our hba card information |
252 | */ | 248 | */ |
253 | static void __devinit | 249 | static void update_main_config_table(struct pm8001_hba_info *pm8001_ha) |
254 | update_main_config_table(struct pm8001_hba_info *pm8001_ha) | ||
255 | { | 250 | { |
256 | void __iomem *address = pm8001_ha->main_cfg_tbl_addr; | 251 | void __iomem *address = pm8001_ha->main_cfg_tbl_addr; |
257 | pm8001_mw32(address, 0x24, | 252 | pm8001_mw32(address, 0x24, |
@@ -297,8 +292,8 @@ update_main_config_table(struct pm8001_hba_info *pm8001_ha) | |||
297 | * update_inbnd_queue_table - update the inbound queue table to the HBA. | 292 | * update_inbnd_queue_table - update the inbound queue table to the HBA. |
298 | * @pm8001_ha: our hba card information | 293 | * @pm8001_ha: our hba card information |
299 | */ | 294 | */ |
300 | static void __devinit | 295 | static void update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha, |
301 | update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha, int number) | 296 | int number) |
302 | { | 297 | { |
303 | void __iomem *address = pm8001_ha->inbnd_q_tbl_addr; | 298 | void __iomem *address = pm8001_ha->inbnd_q_tbl_addr; |
304 | u16 offset = number * 0x20; | 299 | u16 offset = number * 0x20; |
@@ -318,8 +313,8 @@ update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha, int number) | |||
318 | * update_outbnd_queue_table - update the outbound queue table to the HBA. | 313 | * update_outbnd_queue_table - update the outbound queue table to the HBA. |
319 | * @pm8001_ha: our hba card information | 314 | * @pm8001_ha: our hba card information |
320 | */ | 315 | */ |
321 | static void __devinit | 316 | static void update_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha, |
322 | update_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha, int number) | 317 | int number) |
323 | { | 318 | { |
324 | void __iomem *address = pm8001_ha->outbnd_q_tbl_addr; | 319 | void __iomem *address = pm8001_ha->outbnd_q_tbl_addr; |
325 | u16 offset = number * 0x24; | 320 | u16 offset = number * 0x24; |
@@ -370,8 +365,8 @@ int pm8001_bar4_shift(struct pm8001_hba_info *pm8001_ha, u32 shiftValue) | |||
370 | * @pm8001_ha: our hba card information | 365 | * @pm8001_ha: our hba card information |
371 | * @SSCbit: set SSCbit to 0 to disable all phys ssc; 1 to enable all phys ssc. | 366 | * @SSCbit: set SSCbit to 0 to disable all phys ssc; 1 to enable all phys ssc. |
372 | */ | 367 | */ |
373 | static void __devinit | 368 | static void mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, |
374 | mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, u32 SSCbit) | 369 | u32 SSCbit) |
375 | { | 370 | { |
376 | u32 value, offset, i; | 371 | u32 value, offset, i; |
377 | unsigned long flags; | 372 | unsigned long flags; |
@@ -438,9 +433,8 @@ mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, u32 SSCbit) | |||
438 | * @pm8001_ha: our hba card information | 433 | * @pm8001_ha: our hba card information |
439 | * @interval - interval time for each OPEN_REJECT (RETRY). The units are in 1us. | 434 | * @interval - interval time for each OPEN_REJECT (RETRY). The units are in 1us. |
440 | */ | 435 | */ |
441 | static void __devinit | 436 | static void mpi_set_open_retry_interval_reg(struct pm8001_hba_info *pm8001_ha, |
442 | mpi_set_open_retry_interval_reg(struct pm8001_hba_info *pm8001_ha, | 437 | u32 interval) |
443 | u32 interval) | ||
444 | { | 438 | { |
445 | u32 offset; | 439 | u32 offset; |
446 | u32 value; | 440 | u32 value; |
@@ -601,7 +595,7 @@ static void init_pci_device_addresses(struct pm8001_hba_info *pm8001_ha) | |||
601 | * pm8001_chip_init - the main init function that initialize whole PM8001 chip. | 595 | * pm8001_chip_init - the main init function that initialize whole PM8001 chip. |
602 | * @pm8001_ha: our hba card information | 596 | * @pm8001_ha: our hba card information |
603 | */ | 597 | */ |
604 | static int __devinit pm8001_chip_init(struct pm8001_hba_info *pm8001_ha) | 598 | static int pm8001_chip_init(struct pm8001_hba_info *pm8001_ha) |
605 | { | 599 | { |
606 | /* check the firmware status */ | 600 | /* check the firmware status */ |
607 | if (-1 == check_fw_ready(pm8001_ha)) { | 601 | if (-1 == check_fw_ready(pm8001_ha)) { |
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 0267c22f8741..4c9fe733fe88 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c | |||
@@ -104,8 +104,7 @@ static struct sas_domain_function_template pm8001_transport_ops = { | |||
104 | *@pm8001_ha: our hba structure. | 104 | *@pm8001_ha: our hba structure. |
105 | *@phy_id: phy id. | 105 | *@phy_id: phy id. |
106 | */ | 106 | */ |
107 | static void __devinit pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, | 107 | static void pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, int phy_id) |
108 | int phy_id) | ||
109 | { | 108 | { |
110 | struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; | 109 | struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; |
111 | struct asd_sas_phy *sas_phy = &phy->sas_phy; | 110 | struct asd_sas_phy *sas_phy = &phy->sas_phy; |
@@ -195,7 +194,7 @@ static irqreturn_t pm8001_interrupt(int irq, void *opaque) | |||
195 | * @pm8001_ha:our hba structure. | 194 | * @pm8001_ha:our hba structure. |
196 | * | 195 | * |
197 | */ | 196 | */ |
198 | static int __devinit pm8001_alloc(struct pm8001_hba_info *pm8001_ha) | 197 | static int pm8001_alloc(struct pm8001_hba_info *pm8001_ha) |
199 | { | 198 | { |
200 | int i; | 199 | int i; |
201 | spin_lock_init(&pm8001_ha->lock); | 200 | spin_lock_init(&pm8001_ha->lock); |
@@ -360,8 +359,9 @@ static int pm8001_ioremap(struct pm8001_hba_info *pm8001_ha) | |||
360 | * @ent: ent | 359 | * @ent: ent |
361 | * @shost: scsi host struct which has been initialized before. | 360 | * @shost: scsi host struct which has been initialized before. |
362 | */ | 361 | */ |
363 | static struct pm8001_hba_info *__devinit | 362 | static struct pm8001_hba_info *pm8001_pci_alloc(struct pci_dev *pdev, |
364 | pm8001_pci_alloc(struct pci_dev *pdev, u32 chip_id, struct Scsi_Host *shost) | 363 | u32 chip_id, |
364 | struct Scsi_Host *shost) | ||
365 | { | 365 | { |
366 | struct pm8001_hba_info *pm8001_ha; | 366 | struct pm8001_hba_info *pm8001_ha; |
367 | struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); | 367 | struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); |
@@ -433,8 +433,8 @@ static int pci_go_44(struct pci_dev *pdev) | |||
433 | * @shost: scsi host which has been allocated outside. | 433 | * @shost: scsi host which has been allocated outside. |
434 | * @chip_info: our ha struct. | 434 | * @chip_info: our ha struct. |
435 | */ | 435 | */ |
436 | static int __devinit pm8001_prep_sas_ha_init(struct Scsi_Host * shost, | 436 | static int pm8001_prep_sas_ha_init(struct Scsi_Host *shost, |
437 | const struct pm8001_chip_info *chip_info) | 437 | const struct pm8001_chip_info *chip_info) |
438 | { | 438 | { |
439 | int phy_nr, port_nr; | 439 | int phy_nr, port_nr; |
440 | struct asd_sas_phy **arr_phy; | 440 | struct asd_sas_phy **arr_phy; |
@@ -479,8 +479,8 @@ exit: | |||
479 | * @shost: scsi host which has been allocated outside | 479 | * @shost: scsi host which has been allocated outside |
480 | * @chip_info: our ha struct. | 480 | * @chip_info: our ha struct. |
481 | */ | 481 | */ |
482 | static void __devinit pm8001_post_sas_ha_init(struct Scsi_Host *shost, | 482 | static void pm8001_post_sas_ha_init(struct Scsi_Host *shost, |
483 | const struct pm8001_chip_info *chip_info) | 483 | const struct pm8001_chip_info *chip_info) |
484 | { | 484 | { |
485 | int i = 0; | 485 | int i = 0; |
486 | struct pm8001_hba_info *pm8001_ha; | 486 | struct pm8001_hba_info *pm8001_ha; |
@@ -615,8 +615,8 @@ intx: | |||
615 | * pci driver it is invoked, all struct an hardware initilization should be done | 615 | * pci driver it is invoked, all struct an hardware initilization should be done |
616 | * here, also, register interrupt | 616 | * here, also, register interrupt |
617 | */ | 617 | */ |
618 | static int __devinit pm8001_pci_probe(struct pci_dev *pdev, | 618 | static int pm8001_pci_probe(struct pci_dev *pdev, |
619 | const struct pci_device_id *ent) | 619 | const struct pci_device_id *ent) |
620 | { | 620 | { |
621 | unsigned int rc; | 621 | unsigned int rc; |
622 | u32 pci_reg; | 622 | u32 pci_reg; |
@@ -707,7 +707,7 @@ err_out_enable: | |||
707 | return rc; | 707 | return rc; |
708 | } | 708 | } |
709 | 709 | ||
710 | static void __devexit pm8001_pci_remove(struct pci_dev *pdev) | 710 | static void pm8001_pci_remove(struct pci_dev *pdev) |
711 | { | 711 | { |
712 | struct sas_ha_struct *sha = pci_get_drvdata(pdev); | 712 | struct sas_ha_struct *sha = pci_get_drvdata(pdev); |
713 | struct pm8001_hba_info *pm8001_ha; | 713 | struct pm8001_hba_info *pm8001_ha; |
@@ -842,7 +842,7 @@ err_out_enable: | |||
842 | return rc; | 842 | return rc; |
843 | } | 843 | } |
844 | 844 | ||
845 | static struct pci_device_id __devinitdata pm8001_pci_table[] = { | 845 | static struct pci_device_id pm8001_pci_table[] = { |
846 | { | 846 | { |
847 | PCI_VDEVICE(PMC_Sierra, 0x8001), chip_8001 | 847 | PCI_VDEVICE(PMC_Sierra, 0x8001), chip_8001 |
848 | }, | 848 | }, |
@@ -857,7 +857,7 @@ static struct pci_driver pm8001_pci_driver = { | |||
857 | .name = DRV_NAME, | 857 | .name = DRV_NAME, |
858 | .id_table = pm8001_pci_table, | 858 | .id_table = pm8001_pci_table, |
859 | .probe = pm8001_pci_probe, | 859 | .probe = pm8001_pci_probe, |
860 | .remove = __devexit_p(pm8001_pci_remove), | 860 | .remove = pm8001_pci_remove, |
861 | .suspend = pm8001_pci_suspend, | 861 | .suspend = pm8001_pci_suspend, |
862 | .resume = pm8001_pci_resume, | 862 | .resume = pm8001_pci_resume, |
863 | }; | 863 | }; |
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index af763eab2039..b46f5e906837 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -125,7 +125,7 @@ static struct pmcraid_chip_details pmcraid_chip_cfg[] = { | |||
125 | /* | 125 | /* |
126 | * PCI device ids supported by pmcraid driver | 126 | * PCI device ids supported by pmcraid driver |
127 | */ | 127 | */ |
128 | static struct pci_device_id pmcraid_pci_table[] __devinitdata = { | 128 | static struct pci_device_id pmcraid_pci_table[] = { |
129 | { PCI_DEVICE(PCI_VENDOR_ID_PMC, PCI_DEVICE_ID_PMC_MAXRAID), | 129 | { PCI_DEVICE(PCI_VENDOR_ID_PMC, PCI_DEVICE_ID_PMC_MAXRAID), |
130 | 0, 0, (kernel_ulong_t)&pmcraid_chip_cfg[0] | 130 | 0, 0, (kernel_ulong_t)&pmcraid_chip_cfg[0] |
131 | }, | 131 | }, |
@@ -4818,8 +4818,7 @@ pmcraid_release_control_blocks( | |||
4818 | * Return Value | 4818 | * Return Value |
4819 | * 0 in case of success; -ENOMEM in case of failure | 4819 | * 0 in case of success; -ENOMEM in case of failure |
4820 | */ | 4820 | */ |
4821 | static int __devinit | 4821 | static int pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) |
4822 | pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) | ||
4823 | { | 4822 | { |
4824 | int i; | 4823 | int i; |
4825 | 4824 | ||
@@ -4855,8 +4854,7 @@ pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) | |||
4855 | * Return Value | 4854 | * Return Value |
4856 | * 0 in case it can allocate all control blocks, otherwise -ENOMEM | 4855 | * 0 in case it can allocate all control blocks, otherwise -ENOMEM |
4857 | */ | 4856 | */ |
4858 | static int __devinit | 4857 | static int pmcraid_allocate_control_blocks(struct pmcraid_instance *pinstance) |
4859 | pmcraid_allocate_control_blocks(struct pmcraid_instance *pinstance) | ||
4860 | { | 4858 | { |
4861 | int i; | 4859 | int i; |
4862 | 4860 | ||
@@ -4922,8 +4920,7 @@ pmcraid_release_host_rrqs(struct pmcraid_instance *pinstance, int maxindex) | |||
4922 | * Return value | 4920 | * Return value |
4923 | * 0 hrrq buffers are allocated, -ENOMEM otherwise. | 4921 | * 0 hrrq buffers are allocated, -ENOMEM otherwise. |
4924 | */ | 4922 | */ |
4925 | static int __devinit | 4923 | static int pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) |
4926 | pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) | ||
4927 | { | 4924 | { |
4928 | int i, buffer_size; | 4925 | int i, buffer_size; |
4929 | 4926 | ||
@@ -5062,8 +5059,7 @@ static void pmcraid_release_config_buffers(struct pmcraid_instance *pinstance) | |||
5062 | * Return Value | 5059 | * Return Value |
5063 | * 0 for successful allocation, -ENOMEM for any failure | 5060 | * 0 for successful allocation, -ENOMEM for any failure |
5064 | */ | 5061 | */ |
5065 | static int __devinit | 5062 | static int pmcraid_allocate_config_buffers(struct pmcraid_instance *pinstance) |
5066 | pmcraid_allocate_config_buffers(struct pmcraid_instance *pinstance) | ||
5067 | { | 5063 | { |
5068 | int i; | 5064 | int i; |
5069 | 5065 | ||
@@ -5181,7 +5177,7 @@ static void pmcraid_release_buffers(struct pmcraid_instance *pinstance) | |||
5181 | * Return Value | 5177 | * Return Value |
5182 | * 0 in case all of the blocks are allocated, -ENOMEM otherwise. | 5178 | * 0 in case all of the blocks are allocated, -ENOMEM otherwise. |
5183 | */ | 5179 | */ |
5184 | static int __devinit pmcraid_init_buffers(struct pmcraid_instance *pinstance) | 5180 | static int pmcraid_init_buffers(struct pmcraid_instance *pinstance) |
5185 | { | 5181 | { |
5186 | int i; | 5182 | int i; |
5187 | 5183 | ||
@@ -5281,11 +5277,8 @@ static void pmcraid_reinit_buffers(struct pmcraid_instance *pinstance) | |||
5281 | * Return Value | 5277 | * Return Value |
5282 | * 0 on success, non-zero in case of any failure | 5278 | * 0 on success, non-zero in case of any failure |
5283 | */ | 5279 | */ |
5284 | static int __devinit pmcraid_init_instance( | 5280 | static int pmcraid_init_instance(struct pci_dev *pdev, struct Scsi_Host *host, |
5285 | struct pci_dev *pdev, | 5281 | void __iomem *mapped_pci_addr) |
5286 | struct Scsi_Host *host, | ||
5287 | void __iomem *mapped_pci_addr | ||
5288 | ) | ||
5289 | { | 5282 | { |
5290 | struct pmcraid_instance *pinstance = | 5283 | struct pmcraid_instance *pinstance = |
5291 | (struct pmcraid_instance *)host->hostdata; | 5284 | (struct pmcraid_instance *)host->hostdata; |
@@ -5442,7 +5435,7 @@ static void pmcraid_release_chrdev(struct pmcraid_instance *pinstance) | |||
5442 | * Return value | 5435 | * Return value |
5443 | * none | 5436 | * none |
5444 | */ | 5437 | */ |
5445 | static void __devexit pmcraid_remove(struct pci_dev *pdev) | 5438 | static void pmcraid_remove(struct pci_dev *pdev) |
5446 | { | 5439 | { |
5447 | struct pmcraid_instance *pinstance = pci_get_drvdata(pdev); | 5440 | struct pmcraid_instance *pinstance = pci_get_drvdata(pdev); |
5448 | 5441 | ||
@@ -5883,10 +5876,8 @@ static void pmcraid_querycfg(struct pmcraid_cmd *cmd) | |||
5883 | * returns 0 if the device is claimed and successfully configured. | 5876 | * returns 0 if the device is claimed and successfully configured. |
5884 | * returns non-zero error code in case of any failure | 5877 | * returns non-zero error code in case of any failure |
5885 | */ | 5878 | */ |
5886 | static int __devinit pmcraid_probe( | 5879 | static int pmcraid_probe(struct pci_dev *pdev, |
5887 | struct pci_dev *pdev, | 5880 | const struct pci_device_id *dev_id) |
5888 | const struct pci_device_id *dev_id | ||
5889 | ) | ||
5890 | { | 5881 | { |
5891 | struct pmcraid_instance *pinstance; | 5882 | struct pmcraid_instance *pinstance; |
5892 | struct Scsi_Host *host; | 5883 | struct Scsi_Host *host; |
diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index 959f10055be7..e6e2a30493e6 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c | |||
@@ -359,7 +359,7 @@ static struct scsi_host_template ps3rom_host_template = { | |||
359 | }; | 359 | }; |
360 | 360 | ||
361 | 361 | ||
362 | static int __devinit ps3rom_probe(struct ps3_system_bus_device *_dev) | 362 | static int ps3rom_probe(struct ps3_system_bus_device *_dev) |
363 | { | 363 | { |
364 | struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); | 364 | struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); |
365 | int error; | 365 | int error; |
diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 538230be5cca..5a522c5bbd43 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c | |||
@@ -1438,7 +1438,7 @@ qla1280_return_status(struct response * sts, struct scsi_cmnd *cp) | |||
1438 | * Returns: | 1438 | * Returns: |
1439 | * 0 = success | 1439 | * 0 = success |
1440 | */ | 1440 | */ |
1441 | static int __devinit | 1441 | static int |
1442 | qla1280_initialize_adapter(struct scsi_qla_host *ha) | 1442 | qla1280_initialize_adapter(struct scsi_qla_host *ha) |
1443 | { | 1443 | { |
1444 | struct device_reg __iomem *reg; | 1444 | struct device_reg __iomem *reg; |
@@ -4230,7 +4230,7 @@ static struct scsi_host_template qla1280_driver_template = { | |||
4230 | }; | 4230 | }; |
4231 | 4231 | ||
4232 | 4232 | ||
4233 | static int __devinit | 4233 | static int |
4234 | qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | 4234 | qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
4235 | { | 4235 | { |
4236 | int devnum = id->driver_data; | 4236 | int devnum = id->driver_data; |
@@ -4399,7 +4399,7 @@ qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
4399 | } | 4399 | } |
4400 | 4400 | ||
4401 | 4401 | ||
4402 | static void __devexit | 4402 | static void |
4403 | qla1280_remove_one(struct pci_dev *pdev) | 4403 | qla1280_remove_one(struct pci_dev *pdev) |
4404 | { | 4404 | { |
4405 | struct Scsi_Host *host = pci_get_drvdata(pdev); | 4405 | struct Scsi_Host *host = pci_get_drvdata(pdev); |
@@ -4433,7 +4433,7 @@ static struct pci_driver qla1280_pci_driver = { | |||
4433 | .name = "qla1280", | 4433 | .name = "qla1280", |
4434 | .id_table = qla1280_pci_tbl, | 4434 | .id_table = qla1280_pci_tbl, |
4435 | .probe = qla1280_probe_one, | 4435 | .probe = qla1280_probe_one, |
4436 | .remove = __devexit_p(qla1280_remove_one), | 4436 | .remove = qla1280_remove_one, |
4437 | }; | 4437 | }; |
4438 | 4438 | ||
4439 | static int __init | 4439 | static int __init |
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 3a1661cf8c1e..10d23f8b7036 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c | |||
@@ -2154,7 +2154,7 @@ qla2xxx_scan_finished(struct Scsi_Host *shost, unsigned long time) | |||
2154 | /* | 2154 | /* |
2155 | * PCI driver interface | 2155 | * PCI driver interface |
2156 | */ | 2156 | */ |
2157 | static int __devinit | 2157 | static int |
2158 | qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) | 2158 | qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
2159 | { | 2159 | { |
2160 | int ret = -ENODEV; | 2160 | int ret = -ENODEV; |
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index fbc546e893ac..4cec123a6a6a 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -5124,8 +5124,8 @@ void qla4xxx_build_ddb_list(struct scsi_qla_host *ha, int is_reset) | |||
5124 | * It returns zero if successful. It also initializes all data necessary for | 5124 | * It returns zero if successful. It also initializes all data necessary for |
5125 | * the driver. | 5125 | * the driver. |
5126 | **/ | 5126 | **/ |
5127 | static int __devinit qla4xxx_probe_adapter(struct pci_dev *pdev, | 5127 | static int qla4xxx_probe_adapter(struct pci_dev *pdev, |
5128 | const struct pci_device_id *ent) | 5128 | const struct pci_device_id *ent) |
5129 | { | 5129 | { |
5130 | int ret = -ENODEV, status; | 5130 | int ret = -ENODEV, status; |
5131 | struct Scsi_Host *host; | 5131 | struct Scsi_Host *host; |
@@ -5464,7 +5464,7 @@ static void qla4xxx_destroy_fw_ddb_session(struct scsi_qla_host *ha) | |||
5464 | * qla4xxx_remove_adapter - callback function to remove adapter. | 5464 | * qla4xxx_remove_adapter - callback function to remove adapter. |
5465 | * @pci_dev: PCI device pointer | 5465 | * @pci_dev: PCI device pointer |
5466 | **/ | 5466 | **/ |
5467 | static void __devexit qla4xxx_remove_adapter(struct pci_dev *pdev) | 5467 | static void qla4xxx_remove_adapter(struct pci_dev *pdev) |
5468 | { | 5468 | { |
5469 | struct scsi_qla_host *ha; | 5469 | struct scsi_qla_host *ha; |
5470 | 5470 | ||
diff --git a/drivers/scsi/qlogicfas.c b/drivers/scsi/qlogicfas.c index 1e874f1fb5c6..13d628b56ff7 100644 --- a/drivers/scsi/qlogicfas.c +++ b/drivers/scsi/qlogicfas.c | |||
@@ -142,7 +142,7 @@ module_param_array(irq, int, NULL, 0); | |||
142 | MODULE_PARM_DESC(iobase, "I/O address"); | 142 | MODULE_PARM_DESC(iobase, "I/O address"); |
143 | MODULE_PARM_DESC(irq, "IRQ"); | 143 | MODULE_PARM_DESC(irq, "IRQ"); |
144 | 144 | ||
145 | static int __devinit qlogicfas_detect(struct scsi_host_template *sht) | 145 | static int qlogicfas_detect(struct scsi_host_template *sht) |
146 | { | 146 | { |
147 | struct Scsi_Host *shost; | 147 | struct Scsi_Host *shost; |
148 | struct qlogicfas408_priv *priv; | 148 | struct qlogicfas408_priv *priv; |
diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index 71fddbc60f18..6d48d30bed05 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c | |||
@@ -461,7 +461,7 @@ static int qlogicpti_reset_hardware(struct Scsi_Host *host) | |||
461 | 461 | ||
462 | #define PTI_RESET_LIMIT 400 | 462 | #define PTI_RESET_LIMIT 400 |
463 | 463 | ||
464 | static int __devinit qlogicpti_load_firmware(struct qlogicpti *qpti) | 464 | static int qlogicpti_load_firmware(struct qlogicpti *qpti) |
465 | { | 465 | { |
466 | const struct firmware *fw; | 466 | const struct firmware *fw; |
467 | const char fwname[] = "qlogic/isp1000.bin"; | 467 | const char fwname[] = "qlogic/isp1000.bin"; |
@@ -670,7 +670,7 @@ static int qlogicpti_verify_tmon(struct qlogicpti *qpti) | |||
670 | 670 | ||
671 | static irqreturn_t qpti_intr(int irq, void *dev_id); | 671 | static irqreturn_t qpti_intr(int irq, void *dev_id); |
672 | 672 | ||
673 | static void __devinit qpti_chain_add(struct qlogicpti *qpti) | 673 | static void qpti_chain_add(struct qlogicpti *qpti) |
674 | { | 674 | { |
675 | spin_lock_irq(&qptichain_lock); | 675 | spin_lock_irq(&qptichain_lock); |
676 | if (qptichain != NULL) { | 676 | if (qptichain != NULL) { |
@@ -686,7 +686,7 @@ static void __devinit qpti_chain_add(struct qlogicpti *qpti) | |||
686 | spin_unlock_irq(&qptichain_lock); | 686 | spin_unlock_irq(&qptichain_lock); |
687 | } | 687 | } |
688 | 688 | ||
689 | static void __devexit qpti_chain_del(struct qlogicpti *qpti) | 689 | static void qpti_chain_del(struct qlogicpti *qpti) |
690 | { | 690 | { |
691 | spin_lock_irq(&qptichain_lock); | 691 | spin_lock_irq(&qptichain_lock); |
692 | if (qptichain == qpti) { | 692 | if (qptichain == qpti) { |
@@ -701,7 +701,7 @@ static void __devexit qpti_chain_del(struct qlogicpti *qpti) | |||
701 | spin_unlock_irq(&qptichain_lock); | 701 | spin_unlock_irq(&qptichain_lock); |
702 | } | 702 | } |
703 | 703 | ||
704 | static int __devinit qpti_map_regs(struct qlogicpti *qpti) | 704 | static int qpti_map_regs(struct qlogicpti *qpti) |
705 | { | 705 | { |
706 | struct platform_device *op = qpti->op; | 706 | struct platform_device *op = qpti->op; |
707 | 707 | ||
@@ -724,7 +724,7 @@ static int __devinit qpti_map_regs(struct qlogicpti *qpti) | |||
724 | return 0; | 724 | return 0; |
725 | } | 725 | } |
726 | 726 | ||
727 | static int __devinit qpti_register_irq(struct qlogicpti *qpti) | 727 | static int qpti_register_irq(struct qlogicpti *qpti) |
728 | { | 728 | { |
729 | struct platform_device *op = qpti->op; | 729 | struct platform_device *op = qpti->op; |
730 | 730 | ||
@@ -749,7 +749,7 @@ fail: | |||
749 | return -1; | 749 | return -1; |
750 | } | 750 | } |
751 | 751 | ||
752 | static void __devinit qpti_get_scsi_id(struct qlogicpti *qpti) | 752 | static void qpti_get_scsi_id(struct qlogicpti *qpti) |
753 | { | 753 | { |
754 | struct platform_device *op = qpti->op; | 754 | struct platform_device *op = qpti->op; |
755 | struct device_node *dp; | 755 | struct device_node *dp; |
@@ -803,7 +803,7 @@ static void qpti_get_clock(struct qlogicpti *qpti) | |||
803 | /* The request and response queues must each be aligned | 803 | /* The request and response queues must each be aligned |
804 | * on a page boundary. | 804 | * on a page boundary. |
805 | */ | 805 | */ |
806 | static int __devinit qpti_map_queues(struct qlogicpti *qpti) | 806 | static int qpti_map_queues(struct qlogicpti *qpti) |
807 | { | 807 | { |
808 | struct platform_device *op = qpti->op; | 808 | struct platform_device *op = qpti->op; |
809 | 809 | ||
@@ -1292,7 +1292,7 @@ static struct scsi_host_template qpti_template = { | |||
1292 | }; | 1292 | }; |
1293 | 1293 | ||
1294 | static const struct of_device_id qpti_match[]; | 1294 | static const struct of_device_id qpti_match[]; |
1295 | static int __devinit qpti_sbus_probe(struct platform_device *op) | 1295 | static int qpti_sbus_probe(struct platform_device *op) |
1296 | { | 1296 | { |
1297 | struct device_node *dp = op->dev.of_node; | 1297 | struct device_node *dp = op->dev.of_node; |
1298 | struct Scsi_Host *host; | 1298 | struct Scsi_Host *host; |
@@ -1402,7 +1402,7 @@ fail_unlink: | |||
1402 | return -ENODEV; | 1402 | return -ENODEV; |
1403 | } | 1403 | } |
1404 | 1404 | ||
1405 | static int __devexit qpti_sbus_remove(struct platform_device *op) | 1405 | static int qpti_sbus_remove(struct platform_device *op) |
1406 | { | 1406 | { |
1407 | struct qlogicpti *qpti = dev_get_drvdata(&op->dev); | 1407 | struct qlogicpti *qpti = dev_get_drvdata(&op->dev); |
1408 | 1408 | ||
@@ -1459,7 +1459,7 @@ static struct platform_driver qpti_sbus_driver = { | |||
1459 | .of_match_table = qpti_match, | 1459 | .of_match_table = qpti_match, |
1460 | }, | 1460 | }, |
1461 | .probe = qpti_sbus_probe, | 1461 | .probe = qpti_sbus_probe, |
1462 | .remove = __devexit_p(qpti_sbus_remove), | 1462 | .remove = qpti_sbus_remove, |
1463 | }; | 1463 | }; |
1464 | 1464 | ||
1465 | static int __init qpti_init(void) | 1465 | static int __init qpti_init(void) |
diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c index 3a9d85ca6047..a464d959f66e 100644 --- a/drivers/scsi/sgiwd93.c +++ b/drivers/scsi/sgiwd93.c | |||
@@ -226,7 +226,7 @@ static struct scsi_host_template sgiwd93_template = { | |||
226 | .use_clustering = DISABLE_CLUSTERING, | 226 | .use_clustering = DISABLE_CLUSTERING, |
227 | }; | 227 | }; |
228 | 228 | ||
229 | static int __devinit sgiwd93_probe(struct platform_device *pdev) | 229 | static int sgiwd93_probe(struct platform_device *pdev) |
230 | { | 230 | { |
231 | struct sgiwd93_platform_data *pd = pdev->dev.platform_data; | 231 | struct sgiwd93_platform_data *pd = pdev->dev.platform_data; |
232 | unsigned char *wdregs = pd->wdregs; | 232 | unsigned char *wdregs = pd->wdregs; |
@@ -312,7 +312,7 @@ static int __exit sgiwd93_remove(struct platform_device *pdev) | |||
312 | 312 | ||
313 | static struct platform_driver sgiwd93_driver = { | 313 | static struct platform_driver sgiwd93_driver = { |
314 | .probe = sgiwd93_probe, | 314 | .probe = sgiwd93_probe, |
315 | .remove = __devexit_p(sgiwd93_remove), | 315 | .remove = sgiwd93_remove, |
316 | .driver = { | 316 | .driver = { |
317 | .name = "sgiwd93", | 317 | .name = "sgiwd93", |
318 | .owner = THIS_MODULE, | 318 | .owner = THIS_MODULE, |
diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c index a318264a4ba1..3b3b56f4a830 100644 --- a/drivers/scsi/sim710.c +++ b/drivers/scsi/sim710.c | |||
@@ -94,9 +94,9 @@ static struct scsi_host_template sim710_driver_template = { | |||
94 | .module = THIS_MODULE, | 94 | .module = THIS_MODULE, |
95 | }; | 95 | }; |
96 | 96 | ||
97 | static __devinit int | 97 | static int sim710_probe_common(struct device *dev, unsigned long base_addr, |
98 | sim710_probe_common(struct device *dev, unsigned long base_addr, | 98 | int irq, int clock, int differential, |
99 | int irq, int clock, int differential, int scsi_id) | 99 | int scsi_id) |
100 | { | 100 | { |
101 | struct Scsi_Host * host = NULL; | 101 | struct Scsi_Host * host = NULL; |
102 | struct NCR_700_Host_Parameters *hostdata = | 102 | struct NCR_700_Host_Parameters *hostdata = |
@@ -153,8 +153,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, | |||
153 | return -ENODEV; | 153 | return -ENODEV; |
154 | } | 154 | } |
155 | 155 | ||
156 | static __devexit int | 156 | static int sim710_device_remove(struct device *dev) |
157 | sim710_device_remove(struct device *dev) | ||
158 | { | 157 | { |
159 | struct Scsi_Host *host = dev_get_drvdata(dev); | 158 | struct Scsi_Host *host = dev_get_drvdata(dev); |
160 | struct NCR_700_Host_Parameters *hostdata = | 159 | struct NCR_700_Host_Parameters *hostdata = |
@@ -221,7 +220,7 @@ static struct eisa_driver sim710_eisa_driver = { | |||
221 | .driver = { | 220 | .driver = { |
222 | .name = "sim710", | 221 | .name = "sim710", |
223 | .probe = sim710_eisa_probe, | 222 | .probe = sim710_eisa_probe, |
224 | .remove = __devexit_p(sim710_device_remove), | 223 | .remove = sim710_device_remove, |
225 | }, | 224 | }, |
226 | }; | 225 | }; |
227 | #endif /* CONFIG_EISA */ | 226 | #endif /* CONFIG_EISA */ |
diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c index cf51432f8e72..52d54e7425db 100644 --- a/drivers/scsi/sni_53c710.c +++ b/drivers/scsi/sni_53c710.c | |||
@@ -65,7 +65,7 @@ static struct scsi_host_template snirm710_template = { | |||
65 | .module = THIS_MODULE, | 65 | .module = THIS_MODULE, |
66 | }; | 66 | }; |
67 | 67 | ||
68 | static int __devinit snirm710_probe(struct platform_device *dev) | 68 | static int snirm710_probe(struct platform_device *dev) |
69 | { | 69 | { |
70 | unsigned long base; | 70 | unsigned long base; |
71 | struct NCR_700_Host_Parameters *hostdata; | 71 | struct NCR_700_Host_Parameters *hostdata; |
@@ -134,7 +134,7 @@ static int __exit snirm710_driver_remove(struct platform_device *dev) | |||
134 | 134 | ||
135 | static struct platform_driver snirm710_driver = { | 135 | static struct platform_driver snirm710_driver = { |
136 | .probe = snirm710_probe, | 136 | .probe = snirm710_probe, |
137 | .remove = __devexit_p(snirm710_driver_remove), | 137 | .remove = snirm710_driver_remove, |
138 | .driver = { | 138 | .driver = { |
139 | .name = "snirm_53c710", | 139 | .name = "snirm_53c710", |
140 | .owner = THIS_MODULE, | 140 | .owner = THIS_MODULE, |
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c index 606215e54b88..325c31caa6e0 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c | |||
@@ -1540,8 +1540,7 @@ static void stex_free_irq(struct st_hba *hba) | |||
1540 | pci_disable_msi(pdev); | 1540 | pci_disable_msi(pdev); |
1541 | } | 1541 | } |
1542 | 1542 | ||
1543 | static int __devinit | 1543 | static int stex_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
1544 | stex_probe(struct pci_dev *pdev, const struct pci_device_id *id) | ||
1545 | { | 1544 | { |
1546 | struct st_hba *hba; | 1545 | struct st_hba *hba; |
1547 | struct Scsi_Host *host; | 1546 | struct Scsi_Host *host; |
@@ -1815,7 +1814,7 @@ static struct pci_driver stex_pci_driver = { | |||
1815 | .name = DRV_NAME, | 1814 | .name = DRV_NAME, |
1816 | .id_table = stex_pci_tbl, | 1815 | .id_table = stex_pci_tbl, |
1817 | .probe = stex_probe, | 1816 | .probe = stex_probe, |
1818 | .remove = __devexit_p(stex_remove), | 1817 | .remove = stex_remove, |
1819 | .shutdown = stex_shutdown, | 1818 | .shutdown = stex_shutdown, |
1820 | }; | 1819 | }; |
1821 | 1820 | ||
diff --git a/drivers/scsi/sun3x_esp.c b/drivers/scsi/sun3x_esp.c index 0621037f0271..534eb96fc3a7 100644 --- a/drivers/scsi/sun3x_esp.c +++ b/drivers/scsi/sun3x_esp.c | |||
@@ -194,7 +194,7 @@ static const struct esp_driver_ops sun3x_esp_ops = { | |||
194 | .dma_error = sun3x_esp_dma_error, | 194 | .dma_error = sun3x_esp_dma_error, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | static int __devinit esp_sun3x_probe(struct platform_device *dev) | 197 | static int esp_sun3x_probe(struct platform_device *dev) |
198 | { | 198 | { |
199 | struct scsi_host_template *tpnt = &scsi_esp_template; | 199 | struct scsi_host_template *tpnt = &scsi_esp_template; |
200 | struct Scsi_Host *host; | 200 | struct Scsi_Host *host; |
@@ -268,7 +268,7 @@ fail: | |||
268 | return err; | 268 | return err; |
269 | } | 269 | } |
270 | 270 | ||
271 | static int __devexit esp_sun3x_remove(struct platform_device *dev) | 271 | static int esp_sun3x_remove(struct platform_device *dev) |
272 | { | 272 | { |
273 | struct esp *esp = dev_get_drvdata(&dev->dev); | 273 | struct esp *esp = dev_get_drvdata(&dev->dev); |
274 | unsigned int irq = esp->host->irq; | 274 | unsigned int irq = esp->host->irq; |
@@ -292,7 +292,7 @@ static int __devexit esp_sun3x_remove(struct platform_device *dev) | |||
292 | 292 | ||
293 | static struct platform_driver esp_sun3x_driver = { | 293 | static struct platform_driver esp_sun3x_driver = { |
294 | .probe = esp_sun3x_probe, | 294 | .probe = esp_sun3x_probe, |
295 | .remove = __devexit_p(esp_sun3x_remove), | 295 | .remove = esp_sun3x_remove, |
296 | .driver = { | 296 | .driver = { |
297 | .name = "sun3x_esp", | 297 | .name = "sun3x_esp", |
298 | .owner = THIS_MODULE, | 298 | .owner = THIS_MODULE, |
diff --git a/drivers/scsi/sun_esp.c b/drivers/scsi/sun_esp.c index 676fe9ac7f61..f2e68459f7ea 100644 --- a/drivers/scsi/sun_esp.c +++ b/drivers/scsi/sun_esp.c | |||
@@ -43,8 +43,7 @@ enum dvma_rev { | |||
43 | dvmahme | 43 | dvmahme |
44 | }; | 44 | }; |
45 | 45 | ||
46 | static int __devinit esp_sbus_setup_dma(struct esp *esp, | 46 | static int esp_sbus_setup_dma(struct esp *esp, struct platform_device *dma_of) |
47 | struct platform_device *dma_of) | ||
48 | { | 47 | { |
49 | esp->dma = dma_of; | 48 | esp->dma = dma_of; |
50 | 49 | ||
@@ -79,7 +78,7 @@ static int __devinit esp_sbus_setup_dma(struct esp *esp, | |||
79 | 78 | ||
80 | } | 79 | } |
81 | 80 | ||
82 | static int __devinit esp_sbus_map_regs(struct esp *esp, int hme) | 81 | static int esp_sbus_map_regs(struct esp *esp, int hme) |
83 | { | 82 | { |
84 | struct platform_device *op = esp->dev; | 83 | struct platform_device *op = esp->dev; |
85 | struct resource *res; | 84 | struct resource *res; |
@@ -99,7 +98,7 @@ static int __devinit esp_sbus_map_regs(struct esp *esp, int hme) | |||
99 | return 0; | 98 | return 0; |
100 | } | 99 | } |
101 | 100 | ||
102 | static int __devinit esp_sbus_map_command_block(struct esp *esp) | 101 | static int esp_sbus_map_command_block(struct esp *esp) |
103 | { | 102 | { |
104 | struct platform_device *op = esp->dev; | 103 | struct platform_device *op = esp->dev; |
105 | 104 | ||
@@ -111,7 +110,7 @@ static int __devinit esp_sbus_map_command_block(struct esp *esp) | |||
111 | return 0; | 110 | return 0; |
112 | } | 111 | } |
113 | 112 | ||
114 | static int __devinit esp_sbus_register_irq(struct esp *esp) | 113 | static int esp_sbus_register_irq(struct esp *esp) |
115 | { | 114 | { |
116 | struct Scsi_Host *host = esp->host; | 115 | struct Scsi_Host *host = esp->host; |
117 | struct platform_device *op = esp->dev; | 116 | struct platform_device *op = esp->dev; |
@@ -120,7 +119,7 @@ static int __devinit esp_sbus_register_irq(struct esp *esp) | |||
120 | return request_irq(host->irq, scsi_esp_intr, IRQF_SHARED, "ESP", esp); | 119 | return request_irq(host->irq, scsi_esp_intr, IRQF_SHARED, "ESP", esp); |
121 | } | 120 | } |
122 | 121 | ||
123 | static void __devinit esp_get_scsi_id(struct esp *esp, struct platform_device *espdma) | 122 | static void esp_get_scsi_id(struct esp *esp, struct platform_device *espdma) |
124 | { | 123 | { |
125 | struct platform_device *op = esp->dev; | 124 | struct platform_device *op = esp->dev; |
126 | struct device_node *dp; | 125 | struct device_node *dp; |
@@ -142,7 +141,7 @@ done: | |||
142 | esp->scsi_id_mask = (1 << esp->scsi_id); | 141 | esp->scsi_id_mask = (1 << esp->scsi_id); |
143 | } | 142 | } |
144 | 143 | ||
145 | static void __devinit esp_get_differential(struct esp *esp) | 144 | static void esp_get_differential(struct esp *esp) |
146 | { | 145 | { |
147 | struct platform_device *op = esp->dev; | 146 | struct platform_device *op = esp->dev; |
148 | struct device_node *dp; | 147 | struct device_node *dp; |
@@ -154,7 +153,7 @@ static void __devinit esp_get_differential(struct esp *esp) | |||
154 | esp->flags &= ~ESP_FLAG_DIFFERENTIAL; | 153 | esp->flags &= ~ESP_FLAG_DIFFERENTIAL; |
155 | } | 154 | } |
156 | 155 | ||
157 | static void __devinit esp_get_clock_params(struct esp *esp) | 156 | static void esp_get_clock_params(struct esp *esp) |
158 | { | 157 | { |
159 | struct platform_device *op = esp->dev; | 158 | struct platform_device *op = esp->dev; |
160 | struct device_node *bus_dp, *dp; | 159 | struct device_node *bus_dp, *dp; |
@@ -170,7 +169,7 @@ static void __devinit esp_get_clock_params(struct esp *esp) | |||
170 | esp->cfreq = fmhz; | 169 | esp->cfreq = fmhz; |
171 | } | 170 | } |
172 | 171 | ||
173 | static void __devinit esp_get_bursts(struct esp *esp, struct platform_device *dma_of) | 172 | static void esp_get_bursts(struct esp *esp, struct platform_device *dma_of) |
174 | { | 173 | { |
175 | struct device_node *dma_dp = dma_of->dev.of_node; | 174 | struct device_node *dma_dp = dma_of->dev.of_node; |
176 | struct platform_device *op = esp->dev; | 175 | struct platform_device *op = esp->dev; |
@@ -195,7 +194,7 @@ static void __devinit esp_get_bursts(struct esp *esp, struct platform_device *dm | |||
195 | esp->bursts = bursts; | 194 | esp->bursts = bursts; |
196 | } | 195 | } |
197 | 196 | ||
198 | static void __devinit esp_sbus_get_props(struct esp *esp, struct platform_device *espdma) | 197 | static void esp_sbus_get_props(struct esp *esp, struct platform_device *espdma) |
199 | { | 198 | { |
200 | esp_get_scsi_id(esp, espdma); | 199 | esp_get_scsi_id(esp, espdma); |
201 | esp_get_differential(esp); | 200 | esp_get_differential(esp); |
@@ -487,9 +486,8 @@ static const struct esp_driver_ops sbus_esp_ops = { | |||
487 | .dma_error = sbus_esp_dma_error, | 486 | .dma_error = sbus_esp_dma_error, |
488 | }; | 487 | }; |
489 | 488 | ||
490 | static int __devinit esp_sbus_probe_one(struct platform_device *op, | 489 | static int esp_sbus_probe_one(struct platform_device *op, |
491 | struct platform_device *espdma, | 490 | struct platform_device *espdma, int hme) |
492 | int hme) | ||
493 | { | 491 | { |
494 | struct scsi_host_template *tpnt = &scsi_esp_template; | 492 | struct scsi_host_template *tpnt = &scsi_esp_template; |
495 | struct Scsi_Host *host; | 493 | struct Scsi_Host *host; |
@@ -562,7 +560,7 @@ fail: | |||
562 | return err; | 560 | return err; |
563 | } | 561 | } |
564 | 562 | ||
565 | static int __devinit esp_sbus_probe(struct platform_device *op) | 563 | static int esp_sbus_probe(struct platform_device *op) |
566 | { | 564 | { |
567 | struct device_node *dma_node = NULL; | 565 | struct device_node *dma_node = NULL; |
568 | struct device_node *dp = op->dev.of_node; | 566 | struct device_node *dp = op->dev.of_node; |
@@ -585,7 +583,7 @@ static int __devinit esp_sbus_probe(struct platform_device *op) | |||
585 | return esp_sbus_probe_one(op, dma_of, hme); | 583 | return esp_sbus_probe_one(op, dma_of, hme); |
586 | } | 584 | } |
587 | 585 | ||
588 | static int __devexit esp_sbus_remove(struct platform_device *op) | 586 | static int esp_sbus_remove(struct platform_device *op) |
589 | { | 587 | { |
590 | struct esp *esp = dev_get_drvdata(&op->dev); | 588 | struct esp *esp = dev_get_drvdata(&op->dev); |
591 | struct platform_device *dma_of = esp->dma; | 589 | struct platform_device *dma_of = esp->dma; |
@@ -639,7 +637,7 @@ static struct platform_driver esp_sbus_driver = { | |||
639 | .of_match_table = esp_match, | 637 | .of_match_table = esp_match, |
640 | }, | 638 | }, |
641 | .probe = esp_sbus_probe, | 639 | .probe = esp_sbus_probe, |
642 | .remove = __devexit_p(esp_sbus_remove), | 640 | .remove = esp_sbus_remove, |
643 | }; | 641 | }; |
644 | 642 | ||
645 | static int __init sunesp_init(void) | 643 | static int __init sunesp_init(void) |
diff --git a/drivers/scsi/sym53c416.c b/drivers/scsi/sym53c416.c index ac4eca6a5328..0b7819f3e09b 100644 --- a/drivers/scsi/sym53c416.c +++ b/drivers/scsi/sym53c416.c | |||
@@ -581,7 +581,7 @@ static int sym53c416_test(int base) | |||
581 | } | 581 | } |
582 | 582 | ||
583 | 583 | ||
584 | static struct isapnp_device_id id_table[] __devinitdata = { | 584 | static struct isapnp_device_id id_table[] = { |
585 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, | 585 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, |
586 | ISAPNP_VENDOR('S','L','I'), ISAPNP_FUNCTION(0x4161), 0 }, | 586 | ISAPNP_VENDOR('S','L','I'), ISAPNP_FUNCTION(0x4161), 0 }, |
587 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, | 587 | { ISAPNP_ANY_ID, ISAPNP_ANY_ID, |
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index e2b8e68b57e7..599568299fbe 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c | |||
@@ -1284,8 +1284,7 @@ static int sym53c8xx_proc_info(struct Scsi_Host *shost, char *buffer, | |||
1284 | * sym_free_resources() should be used instead of this function after calling | 1284 | * sym_free_resources() should be used instead of this function after calling |
1285 | * sym_attach(). | 1285 | * sym_attach(). |
1286 | */ | 1286 | */ |
1287 | static void __devinit | 1287 | static void sym_iounmap_device(struct sym_device *device) |
1288 | sym_iounmap_device(struct sym_device *device) | ||
1289 | { | 1288 | { |
1290 | if (device->s.ioaddr) | 1289 | if (device->s.ioaddr) |
1291 | pci_iounmap(device->pdev, device->s.ioaddr); | 1290 | pci_iounmap(device->pdev, device->s.ioaddr); |
@@ -1325,8 +1324,8 @@ static void sym_free_resources(struct sym_hcb *np, struct pci_dev *pdev, | |||
1325 | * If all is OK, install interrupt handling and | 1324 | * If all is OK, install interrupt handling and |
1326 | * start the timer daemon. | 1325 | * start the timer daemon. |
1327 | */ | 1326 | */ |
1328 | static struct Scsi_Host * __devinit sym_attach(struct scsi_host_template *tpnt, | 1327 | static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit, |
1329 | int unit, struct sym_device *dev) | 1328 | struct sym_device *dev) |
1330 | { | 1329 | { |
1331 | struct sym_data *sym_data; | 1330 | struct sym_data *sym_data; |
1332 | struct sym_hcb *np = NULL; | 1331 | struct sym_hcb *np = NULL; |
@@ -1481,7 +1480,7 @@ static struct Scsi_Host * __devinit sym_attach(struct scsi_host_template *tpnt, | |||
1481 | * Detect and try to read SYMBIOS and TEKRAM NVRAM. | 1480 | * Detect and try to read SYMBIOS and TEKRAM NVRAM. |
1482 | */ | 1481 | */ |
1483 | #if SYM_CONF_NVRAM_SUPPORT | 1482 | #if SYM_CONF_NVRAM_SUPPORT |
1484 | static void __devinit sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) | 1483 | static void sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) |
1485 | { | 1484 | { |
1486 | devp->nvram = nvp; | 1485 | devp->nvram = nvp; |
1487 | nvp->type = 0; | 1486 | nvp->type = 0; |
@@ -1494,7 +1493,7 @@ static inline void sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) | |||
1494 | } | 1493 | } |
1495 | #endif /* SYM_CONF_NVRAM_SUPPORT */ | 1494 | #endif /* SYM_CONF_NVRAM_SUPPORT */ |
1496 | 1495 | ||
1497 | static int __devinit sym_check_supported(struct sym_device *device) | 1496 | static int sym_check_supported(struct sym_device *device) |
1498 | { | 1497 | { |
1499 | struct sym_chip *chip; | 1498 | struct sym_chip *chip; |
1500 | struct pci_dev *pdev = device->pdev; | 1499 | struct pci_dev *pdev = device->pdev; |
@@ -1531,7 +1530,7 @@ static int __devinit sym_check_supported(struct sym_device *device) | |||
1531 | * Ignore Symbios chips controlled by various RAID controllers. | 1530 | * Ignore Symbios chips controlled by various RAID controllers. |
1532 | * These controllers set value 0x52414944 at RAM end - 16. | 1531 | * These controllers set value 0x52414944 at RAM end - 16. |
1533 | */ | 1532 | */ |
1534 | static int __devinit sym_check_raid(struct sym_device *device) | 1533 | static int sym_check_raid(struct sym_device *device) |
1535 | { | 1534 | { |
1536 | unsigned int ram_size, ram_val; | 1535 | unsigned int ram_size, ram_val; |
1537 | 1536 | ||
@@ -1552,7 +1551,7 @@ static int __devinit sym_check_raid(struct sym_device *device) | |||
1552 | return -ENODEV; | 1551 | return -ENODEV; |
1553 | } | 1552 | } |
1554 | 1553 | ||
1555 | static int __devinit sym_set_workarounds(struct sym_device *device) | 1554 | static int sym_set_workarounds(struct sym_device *device) |
1556 | { | 1555 | { |
1557 | struct sym_chip *chip = &device->chip; | 1556 | struct sym_chip *chip = &device->chip; |
1558 | struct pci_dev *pdev = device->pdev; | 1557 | struct pci_dev *pdev = device->pdev; |
@@ -1602,8 +1601,7 @@ static int __devinit sym_set_workarounds(struct sym_device *device) | |||
1602 | /* | 1601 | /* |
1603 | * Map HBA registers and on-chip SRAM (if present). | 1602 | * Map HBA registers and on-chip SRAM (if present). |
1604 | */ | 1603 | */ |
1605 | static int __devinit | 1604 | static int sym_iomap_device(struct sym_device *device) |
1606 | sym_iomap_device(struct sym_device *device) | ||
1607 | { | 1605 | { |
1608 | struct pci_dev *pdev = device->pdev; | 1606 | struct pci_dev *pdev = device->pdev; |
1609 | struct pci_bus_region bus_addr; | 1607 | struct pci_bus_region bus_addr; |
@@ -1751,8 +1749,7 @@ static struct scsi_host_template sym2_template = { | |||
1751 | 1749 | ||
1752 | static int attach_count; | 1750 | static int attach_count; |
1753 | 1751 | ||
1754 | static int __devinit sym2_probe(struct pci_dev *pdev, | 1752 | static int sym2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
1755 | const struct pci_device_id *ent) | ||
1756 | { | 1753 | { |
1757 | struct sym_device sym_dev; | 1754 | struct sym_device sym_dev; |
1758 | struct sym_nvram nvram; | 1755 | struct sym_nvram nvram; |
@@ -2077,7 +2074,7 @@ static struct spi_function_template sym2_transport_functions = { | |||
2077 | .get_signalling = sym2_get_signalling, | 2074 | .get_signalling = sym2_get_signalling, |
2078 | }; | 2075 | }; |
2079 | 2076 | ||
2080 | static struct pci_device_id sym2_id_table[] __devinitdata = { | 2077 | static struct pci_device_id sym2_id_table[] = { |
2081 | { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C810, | 2078 | { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C810, |
2082 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, | 2079 | PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, |
2083 | { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C820, | 2080 | { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C820, |
diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c index a1baccce05f0..9327f5fcec4e 100644 --- a/drivers/scsi/tmscsim.c +++ b/drivers/scsi/tmscsim.c | |||
@@ -2219,7 +2219,7 @@ static struct scsi_host_template driver_template = { | |||
2219 | * | 2219 | * |
2220 | **********************************************************************/ | 2220 | **********************************************************************/ |
2221 | 2221 | ||
2222 | static void __devinit dc390_eeprom_prepare_read(struct pci_dev *pdev, u8 cmd) | 2222 | static void dc390_eeprom_prepare_read(struct pci_dev *pdev, u8 cmd) |
2223 | { | 2223 | { |
2224 | u8 carryFlag = 1, j = 0x80, bval; | 2224 | u8 carryFlag = 1, j = 0x80, bval; |
2225 | int i; | 2225 | int i; |
@@ -2242,7 +2242,7 @@ static void __devinit dc390_eeprom_prepare_read(struct pci_dev *pdev, u8 cmd) | |||
2242 | } | 2242 | } |
2243 | } | 2243 | } |
2244 | 2244 | ||
2245 | static u16 __devinit dc390_eeprom_get_data(struct pci_dev *pdev) | 2245 | static u16 dc390_eeprom_get_data(struct pci_dev *pdev) |
2246 | { | 2246 | { |
2247 | int i; | 2247 | int i; |
2248 | u16 wval = 0; | 2248 | u16 wval = 0; |
@@ -2264,7 +2264,7 @@ static u16 __devinit dc390_eeprom_get_data(struct pci_dev *pdev) | |||
2264 | return wval; | 2264 | return wval; |
2265 | } | 2265 | } |
2266 | 2266 | ||
2267 | static void __devinit dc390_read_eeprom(struct pci_dev *pdev, u16 *ptr) | 2267 | static void dc390_read_eeprom(struct pci_dev *pdev, u16 *ptr) |
2268 | { | 2268 | { |
2269 | u8 cmd = EEPROM_READ, i; | 2269 | u8 cmd = EEPROM_READ, i; |
2270 | 2270 | ||
@@ -2282,7 +2282,7 @@ static void __devinit dc390_read_eeprom(struct pci_dev *pdev, u16 *ptr) | |||
2282 | } | 2282 | } |
2283 | 2283 | ||
2284 | /* Override EEprom values with explicitly set values */ | 2284 | /* Override EEprom values with explicitly set values */ |
2285 | static void __devinit dc390_eeprom_override(u8 index) | 2285 | static void dc390_eeprom_override(u8 index) |
2286 | { | 2286 | { |
2287 | u8 *ptr = (u8 *) dc390_eepromBuf[index], id; | 2287 | u8 *ptr = (u8 *) dc390_eepromBuf[index], id; |
2288 | 2288 | ||
@@ -2305,7 +2305,7 @@ static void __devinit dc390_eeprom_override(u8 index) | |||
2305 | } | 2305 | } |
2306 | } | 2306 | } |
2307 | 2307 | ||
2308 | static int __devinitdata tmscsim_def[] = { | 2308 | static int tmscsim_def[] = { |
2309 | 7, | 2309 | 7, |
2310 | 0 /* 10MHz */, | 2310 | 0 /* 10MHz */, |
2311 | PARITY_CHK_ | SEND_START_ | EN_DISCONNECT_ | SYNC_NEGO_ | TAG_QUEUEING_, | 2311 | PARITY_CHK_ | SEND_START_ | EN_DISCONNECT_ | SYNC_NEGO_ | TAG_QUEUEING_, |
@@ -2315,7 +2315,7 @@ static int __devinitdata tmscsim_def[] = { | |||
2315 | }; | 2315 | }; |
2316 | 2316 | ||
2317 | /* Copy defaults over set values where missing */ | 2317 | /* Copy defaults over set values where missing */ |
2318 | static void __devinit dc390_fill_with_defaults (void) | 2318 | static void dc390_fill_with_defaults (void) |
2319 | { | 2319 | { |
2320 | int i; | 2320 | int i; |
2321 | 2321 | ||
@@ -2335,7 +2335,7 @@ static void __devinit dc390_fill_with_defaults (void) | |||
2335 | tmscsim[5] = 180; | 2335 | tmscsim[5] = 180; |
2336 | } | 2336 | } |
2337 | 2337 | ||
2338 | static void __devinit dc390_check_eeprom(struct pci_dev *pdev, u8 index) | 2338 | static void dc390_check_eeprom(struct pci_dev *pdev, u8 index) |
2339 | { | 2339 | { |
2340 | u8 interpd[] = {1, 3, 5, 10, 16, 30, 60, 120}; | 2340 | u8 interpd[] = {1, 3, 5, 10, 16, 30, 60, 120}; |
2341 | u8 EEbuf[128]; | 2341 | u8 EEbuf[128]; |
@@ -2372,7 +2372,7 @@ static void __devinit dc390_check_eeprom(struct pci_dev *pdev, u8 index) | |||
2372 | } | 2372 | } |
2373 | } | 2373 | } |
2374 | 2374 | ||
2375 | static void __devinit dc390_init_hw(struct dc390_acb *pACB, u8 index) | 2375 | static void dc390_init_hw(struct dc390_acb *pACB, u8 index) |
2376 | { | 2376 | { |
2377 | struct Scsi_Host *shost = pACB->pScsiHost; | 2377 | struct Scsi_Host *shost = pACB->pScsiHost; |
2378 | u8 dstate; | 2378 | u8 dstate; |
@@ -2422,8 +2422,7 @@ static void __devinit dc390_init_hw(struct dc390_acb *pACB, u8 index) | |||
2422 | DC390_write8(DMA_Status, dstate); | 2422 | DC390_write8(DMA_Status, dstate); |
2423 | } | 2423 | } |
2424 | 2424 | ||
2425 | static int __devinit dc390_probe_one(struct pci_dev *pdev, | 2425 | static int dc390_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
2426 | const struct pci_device_id *id) | ||
2427 | { | 2426 | { |
2428 | struct dc390_acb *pACB; | 2427 | struct dc390_acb *pACB; |
2429 | struct Scsi_Host *shost; | 2428 | struct Scsi_Host *shost; |
@@ -2532,7 +2531,7 @@ static int __devinit dc390_probe_one(struct pci_dev *pdev, | |||
2532 | * | 2531 | * |
2533 | * @dev: The PCI device to remove. | 2532 | * @dev: The PCI device to remove. |
2534 | */ | 2533 | */ |
2535 | static void __devexit dc390_remove_one(struct pci_dev *dev) | 2534 | static void dc390_remove_one(struct pci_dev *dev) |
2536 | { | 2535 | { |
2537 | struct Scsi_Host *scsi_host = pci_get_drvdata(dev); | 2536 | struct Scsi_Host *scsi_host = pci_get_drvdata(dev); |
2538 | unsigned long iflags; | 2537 | unsigned long iflags; |
@@ -2568,7 +2567,7 @@ static struct pci_driver dc390_driver = { | |||
2568 | .name = "tmscsim", | 2567 | .name = "tmscsim", |
2569 | .id_table = tmscsim_pci_tbl, | 2568 | .id_table = tmscsim_pci_tbl, |
2570 | .probe = dc390_probe_one, | 2569 | .probe = dc390_probe_one, |
2571 | .remove = __devexit_p(dc390_remove_one), | 2570 | .remove = dc390_remove_one, |
2572 | }; | 2571 | }; |
2573 | 2572 | ||
2574 | static int __init dc390_module_init(void) | 2573 | static int __init dc390_module_init(void) |
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 58f4ba6fe412..91a4046ca9ba 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c | |||
@@ -1811,8 +1811,7 @@ static int ufshcd_set_dma_mask(struct ufs_hba *hba) | |||
1811 | * | 1811 | * |
1812 | * Returns 0 on success, non-zero value on failure | 1812 | * Returns 0 on success, non-zero value on failure |
1813 | */ | 1813 | */ |
1814 | static int __devinit | 1814 | static int ufshcd_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
1815 | ufshcd_probe(struct pci_dev *pdev, const struct pci_device_id *id) | ||
1816 | { | 1815 | { |
1817 | struct Scsi_Host *host; | 1816 | struct Scsi_Host *host; |
1818 | struct ufs_hba *hba; | 1817 | struct ufs_hba *hba; |
@@ -1947,7 +1946,7 @@ static struct pci_driver ufshcd_pci_driver = { | |||
1947 | .name = UFSHCD, | 1946 | .name = UFSHCD, |
1948 | .id_table = ufshcd_pci_tbl, | 1947 | .id_table = ufshcd_pci_tbl, |
1949 | .probe = ufshcd_probe, | 1948 | .probe = ufshcd_probe, |
1950 | .remove = __devexit_p(ufshcd_remove), | 1949 | .remove = ufshcd_remove, |
1951 | .shutdown = ufshcd_shutdown, | 1950 | .shutdown = ufshcd_shutdown, |
1952 | #ifdef CONFIG_PM | 1951 | #ifdef CONFIG_PM |
1953 | .suspend = ufshcd_suspend, | 1952 | .suspend = ufshcd_suspend, |
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 74ab67a169ec..3449a1f8c656 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c | |||
@@ -679,7 +679,7 @@ out: | |||
679 | return err; | 679 | return err; |
680 | } | 680 | } |
681 | 681 | ||
682 | static int __devinit virtscsi_probe(struct virtio_device *vdev) | 682 | static int virtscsi_probe(struct virtio_device *vdev) |
683 | { | 683 | { |
684 | struct Scsi_Host *shost; | 684 | struct Scsi_Host *shost; |
685 | struct virtio_scsi *vscsi; | 685 | struct virtio_scsi *vscsi; |
@@ -733,7 +733,7 @@ virtscsi_init_failed: | |||
733 | return err; | 733 | return err; |
734 | } | 734 | } |
735 | 735 | ||
736 | static void __devexit virtscsi_remove(struct virtio_device *vdev) | 736 | static void virtscsi_remove(struct virtio_device *vdev) |
737 | { | 737 | { |
738 | struct Scsi_Host *shost = virtio_scsi_host(vdev); | 738 | struct Scsi_Host *shost = virtio_scsi_host(vdev); |
739 | struct virtio_scsi *vscsi = shost_priv(shost); | 739 | struct virtio_scsi *vscsi = shost_priv(shost); |
@@ -785,7 +785,7 @@ static struct virtio_driver virtio_scsi_driver = { | |||
785 | .freeze = virtscsi_freeze, | 785 | .freeze = virtscsi_freeze, |
786 | .restore = virtscsi_restore, | 786 | .restore = virtscsi_restore, |
787 | #endif | 787 | #endif |
788 | .remove = __devexit_p(virtscsi_remove), | 788 | .remove = virtscsi_remove, |
789 | }; | 789 | }; |
790 | 790 | ||
791 | static int __init init(void) | 791 | static int __init init(void) |
diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c index 20b3a483c2cc..3bfaa66fa0d1 100644 --- a/drivers/scsi/vmw_pvscsi.c +++ b/drivers/scsi/vmw_pvscsi.c | |||
@@ -397,7 +397,7 @@ static void pvscsi_unmap_buffers(const struct pvscsi_adapter *adapter, | |||
397 | SCSI_SENSE_BUFFERSIZE, PCI_DMA_FROMDEVICE); | 397 | SCSI_SENSE_BUFFERSIZE, PCI_DMA_FROMDEVICE); |
398 | } | 398 | } |
399 | 399 | ||
400 | static int __devinit pvscsi_allocate_rings(struct pvscsi_adapter *adapter) | 400 | static int pvscsi_allocate_rings(struct pvscsi_adapter *adapter) |
401 | { | 401 | { |
402 | adapter->rings_state = pci_alloc_consistent(adapter->dev, PAGE_SIZE, | 402 | adapter->rings_state = pci_alloc_consistent(adapter->dev, PAGE_SIZE, |
403 | &adapter->ringStatePA); | 403 | &adapter->ringStatePA); |
@@ -1152,7 +1152,7 @@ static void pvscsi_release_resources(struct pvscsi_adapter *adapter) | |||
1152 | * just use a statically allocated scatter list. | 1152 | * just use a statically allocated scatter list. |
1153 | * | 1153 | * |
1154 | */ | 1154 | */ |
1155 | static int __devinit pvscsi_allocate_sg(struct pvscsi_adapter *adapter) | 1155 | static int pvscsi_allocate_sg(struct pvscsi_adapter *adapter) |
1156 | { | 1156 | { |
1157 | struct pvscsi_ctx *ctx; | 1157 | struct pvscsi_ctx *ctx; |
1158 | int i; | 1158 | int i; |
@@ -1233,8 +1233,7 @@ exit: | |||
1233 | return numPhys; | 1233 | return numPhys; |
1234 | } | 1234 | } |
1235 | 1235 | ||
1236 | static int __devinit pvscsi_probe(struct pci_dev *pdev, | 1236 | static int pvscsi_probe(struct pci_dev *pdev, const struct pci_device_id *id) |
1237 | const struct pci_device_id *id) | ||
1238 | { | 1237 | { |
1239 | struct pvscsi_adapter *adapter; | 1238 | struct pvscsi_adapter *adapter; |
1240 | struct Scsi_Host *host; | 1239 | struct Scsi_Host *host; |
@@ -1454,7 +1453,7 @@ static struct pci_driver pvscsi_pci_driver = { | |||
1454 | .name = "vmw_pvscsi", | 1453 | .name = "vmw_pvscsi", |
1455 | .id_table = pvscsi_pci_tbl, | 1454 | .id_table = pvscsi_pci_tbl, |
1456 | .probe = pvscsi_probe, | 1455 | .probe = pvscsi_probe, |
1457 | .remove = __devexit_p(pvscsi_remove), | 1456 | .remove = pvscsi_remove, |
1458 | .shutdown = pvscsi_shutdown, | 1457 | .shutdown = pvscsi_shutdown, |
1459 | }; | 1458 | }; |
1460 | 1459 | ||
diff --git a/drivers/scsi/zalon.c b/drivers/scsi/zalon.c index 27e84e4b1fa9..97ccb0383539 100644 --- a/drivers/scsi/zalon.c +++ b/drivers/scsi/zalon.c | |||
@@ -182,7 +182,7 @@ static struct parisc_driver zalon_driver = { | |||
182 | .name = "zalon", | 182 | .name = "zalon", |
183 | .id_table = zalon_tbl, | 183 | .id_table = zalon_tbl, |
184 | .probe = zalon_probe, | 184 | .probe = zalon_probe, |
185 | .remove = __devexit_p(zalon_remove), | 185 | .remove = zalon_remove, |
186 | }; | 186 | }; |
187 | 187 | ||
188 | static int __init zalon7xx_init(void) | 188 | static int __init zalon7xx_init(void) |
diff --git a/drivers/scsi/zorro7xx.c b/drivers/scsi/zorro7xx.c index e17764d71476..cbf3476c68cd 100644 --- a/drivers/scsi/zorro7xx.c +++ b/drivers/scsi/zorro7xx.c | |||
@@ -38,7 +38,7 @@ static struct zorro_driver_data { | |||
38 | const char *name; | 38 | const char *name; |
39 | unsigned long offset; | 39 | unsigned long offset; |
40 | int absolute; /* offset is absolute address */ | 40 | int absolute; /* offset is absolute address */ |
41 | } zorro7xx_driver_data[] __devinitdata = { | 41 | } zorro7xx_driver_data[] = { |
42 | { .name = "PowerUP 603e+", .offset = 0xf40000, .absolute = 1 }, | 42 | { .name = "PowerUP 603e+", .offset = 0xf40000, .absolute = 1 }, |
43 | { .name = "WarpEngine 40xx", .offset = 0x40000 }, | 43 | { .name = "WarpEngine 40xx", .offset = 0x40000 }, |
44 | { .name = "A4091", .offset = 0x800000 }, | 44 | { .name = "A4091", .offset = 0x800000 }, |
@@ -46,7 +46,7 @@ static struct zorro_driver_data { | |||
46 | { 0 } | 46 | { 0 } |
47 | }; | 47 | }; |
48 | 48 | ||
49 | static struct zorro_device_id zorro7xx_zorro_tbl[] __devinitdata = { | 49 | static struct zorro_device_id zorro7xx_zorro_tbl[] = { |
50 | { | 50 | { |
51 | .id = ZORRO_PROD_PHASE5_BLIZZARD_603E_PLUS, | 51 | .id = ZORRO_PROD_PHASE5_BLIZZARD_603E_PLUS, |
52 | .driver_data = (unsigned long)&zorro7xx_driver_data[0], | 52 | .driver_data = (unsigned long)&zorro7xx_driver_data[0], |
@@ -71,8 +71,8 @@ static struct zorro_device_id zorro7xx_zorro_tbl[] __devinitdata = { | |||
71 | }; | 71 | }; |
72 | MODULE_DEVICE_TABLE(zorro, zorro7xx_zorro_tbl); | 72 | MODULE_DEVICE_TABLE(zorro, zorro7xx_zorro_tbl); |
73 | 73 | ||
74 | static int __devinit zorro7xx_init_one(struct zorro_dev *z, | 74 | static int zorro7xx_init_one(struct zorro_dev *z, |
75 | const struct zorro_device_id *ent) | 75 | const struct zorro_device_id *ent) |
76 | { | 76 | { |
77 | struct Scsi_Host *host; | 77 | struct Scsi_Host *host; |
78 | struct NCR_700_Host_Parameters *hostdata; | 78 | struct NCR_700_Host_Parameters *hostdata; |
@@ -150,7 +150,7 @@ static int __devinit zorro7xx_init_one(struct zorro_dev *z, | |||
150 | return -ENODEV; | 150 | return -ENODEV; |
151 | } | 151 | } |
152 | 152 | ||
153 | static __devexit void zorro7xx_remove_one(struct zorro_dev *z) | 153 | static void zorro7xx_remove_one(struct zorro_dev *z) |
154 | { | 154 | { |
155 | struct Scsi_Host *host = zorro_get_drvdata(z); | 155 | struct Scsi_Host *host = zorro_get_drvdata(z); |
156 | struct NCR_700_Host_Parameters *hostdata = shost_priv(host); | 156 | struct NCR_700_Host_Parameters *hostdata = shost_priv(host); |
@@ -167,7 +167,7 @@ static struct zorro_driver zorro7xx_driver = { | |||
167 | .name = "zorro7xx-scsi", | 167 | .name = "zorro7xx-scsi", |
168 | .id_table = zorro7xx_zorro_tbl, | 168 | .id_table = zorro7xx_zorro_tbl, |
169 | .probe = zorro7xx_init_one, | 169 | .probe = zorro7xx_init_one, |
170 | .remove = __devexit_p(zorro7xx_remove_one), | 170 | .remove = zorro7xx_remove_one, |
171 | }; | 171 | }; |
172 | 172 | ||
173 | static int __init zorro7xx_scsi_init(void) | 173 | static int __init zorro7xx_scsi_init(void) |