Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Drivers: scsi: remove __dev* attributes.

CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.

This change removes the use of __devinit, __devexit_p, __devinitdata,
__devinitconst, and __devexit from these drivers.

Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.

Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Adam Radford <linuxraid@lsi.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+463 -525
+2 -2
drivers/scsi/3w-9xxx.c
··· 2029 2029 }; 2030 2030 2031 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 2034 struct Scsi_Host *host = NULL; 2035 2035 TW_Device_Extension *tw_dev; ··· 2305 2305 #endif 2306 2306 2307 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 2309 { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9000, 2310 2310 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 2311 2311 { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9550SX,
+2 -2
drivers/scsi/3w-sas.c
··· 1604 1604 }; 1605 1605 1606 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 1609 struct Scsi_Host *host = NULL; 1610 1610 TW_Device_Extension *tw_dev; ··· 1893 1893 #endif 1894 1894 1895 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 1897 { PCI_VDEVICE(3WARE, PCI_DEVICE_ID_3WARE_9750) }, 1898 1898 { } 1899 1899 };
+2 -2
drivers/scsi/3w-xxxx.c
··· 2281 2281 }; 2282 2282 2283 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 2286 struct Scsi_Host *host = NULL; 2287 2287 TW_Device_Extension *tw_dev; ··· 2422 2422 } /* End tw_remove() */ 2423 2423 2424 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 2426 { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_1000, 2427 2427 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 2428 2428 { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_7000,
+1 -1
drivers/scsi/BusLogic.c
··· 3615 3615 __setup("BusLogic=", BusLogic_Setup); 3616 3616 3617 3617 #ifdef MODULE 3618 - static struct pci_device_id BusLogic_pci_tbl[] __devinitdata = { 3618 + static struct pci_device_id BusLogic_pci_tbl[] = { 3619 3619 { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER, 3620 3620 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 3621 3621 { PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC,
+1 -1
drivers/scsi/NCR5380.c
··· 814 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 819 NCR5380_local_declare(); 820 820 int i, pass;
+6 -6
drivers/scsi/NCR_D700.c
··· 114 114 MODULE_LICENSE("GPL"); 115 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 118 { [0 ... 2*(MCA_MAX_SLOT_NR + 1)-1] = 7 }; 119 119 120 120 #ifdef MODULE ··· 173 173 char pad; 174 174 }; 175 175 176 - static int __devinit 176 + static int 177 177 NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq, 178 178 int slot, u32 region, int differential) 179 179 { ··· 243 243 * essentially connectecd to the MCA bus independently, it is easier 244 244 * to set them up as two separate host adapters, rather than one 245 245 * adapter with two channels */ 246 - static int __devinit 246 + static int 247 247 NCR_D700_probe(struct device *dev) 248 248 { 249 249 struct NCR_D700_private *p; ··· 349 349 return 0; 350 350 } 351 351 352 - static void __devexit 352 + static void 353 353 NCR_D700_remove_one(struct Scsi_Host *host) 354 354 { 355 355 scsi_remove_host(host); ··· 359 359 release_region(host->base, 64); 360 360 } 361 361 362 - static int __devexit 362 + static int 363 363 NCR_D700_remove(struct device *dev) 364 364 { 365 365 struct NCR_D700_private *p = dev_get_drvdata(dev); ··· 380 380 .name = "NCR_D700", 381 381 .bus = &mca_bus_type, 382 382 .probe = NCR_D700_probe, 383 - .remove = __devexit_p(NCR_D700_remove), 383 + .remove = NCR_D700_remove, 384 384 }, 385 385 }; 386 386
+1 -1
drivers/scsi/NCR_Q720.c
··· 351 351 .name = "NCR_Q720", 352 352 .bus = &mca_bus_type, 353 353 .probe = NCR_Q720_probe, 354 - .remove = __devexit_p(NCR_Q720_remove), 354 + .remove = NCR_Q720_remove, 355 355 }, 356 356 }; 357 357
+4 -4
drivers/scsi/a100u2w.c
··· 1082 1082 .use_clustering = ENABLE_CLUSTERING, 1083 1083 }; 1084 1084 1085 - static int __devinit inia100_probe_one(struct pci_dev *pdev, 1086 - const struct pci_device_id *id) 1085 + static int inia100_probe_one(struct pci_dev *pdev, 1086 + const struct pci_device_id *id) 1087 1087 { 1088 1088 struct Scsi_Host *shost; 1089 1089 struct orc_host *host; ··· 1197 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 1202 struct Scsi_Host *shost = pci_get_drvdata(pdev); 1203 1203 struct orc_host *host = (struct orc_host *)shost->hostdata; ··· 1224 1224 .name = "inia100", 1225 1225 .id_table = inia100_pci_tbl, 1226 1226 .probe = inia100_probe_one, 1227 - .remove = __devexit_p(inia100_remove_one), 1227 + .remove = inia100_remove_one, 1228 1228 }; 1229 1229 1230 1230 static int __init inia100_init(void)
+4 -5
drivers/scsi/a2091.c
··· 179 179 .use_clustering = DISABLE_CLUSTERING 180 180 }; 181 181 182 - static int __devinit a2091_probe(struct zorro_dev *z, 183 - const struct zorro_device_id *ent) 182 + static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent) 184 183 { 185 184 struct Scsi_Host *instance; 186 185 int error; ··· 238 239 return error; 239 240 } 240 241 241 - static void __devexit a2091_remove(struct zorro_dev *z) 242 + static void a2091_remove(struct zorro_dev *z) 242 243 { 243 244 struct Scsi_Host *instance = zorro_get_drvdata(z); 244 245 struct a2091_hostdata *hdata = shost_priv(instance); ··· 250 251 release_mem_region(z->resource.start, 256); 251 252 } 252 253 253 - static struct zorro_device_id a2091_zorro_tbl[] __devinitdata = { 254 + static struct zorro_device_id a2091_zorro_tbl[] = { 254 255 { ZORRO_PROD_CBM_A590_A2091_1 }, 255 256 { ZORRO_PROD_CBM_A590_A2091_2 }, 256 257 { 0 } ··· 261 262 .name = "a2091", 262 263 .id_table = a2091_zorro_tbl, 263 264 .probe = a2091_probe, 264 - .remove = __devexit_p(a2091_remove), 265 + .remove = a2091_remove, 265 266 }; 266 267 267 268 static int __init a2091_init(void)
+4 -11
drivers/scsi/aacraid/linit.c
··· 88 88 * 89 89 * Note: The last field is used to index into aac_drivers below. 90 90 */ 91 - #ifdef DECLARE_PCI_DEVICE_TABLE 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 91 + static const struct pci_device_id aac_pci_tbl[] = { 98 92 { 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */ 99 93 { 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */ 100 94 { 0x1028, 0x0003, 0x1028, 0x0003, 0, 0, 2 }, /* PERC 3/Si (SlimFast/PERC3Si */ ··· 1101 1107 pci_disable_msi(aac->pdev); 1102 1108 } 1103 1109 1104 - static int __devinit aac_probe_one(struct pci_dev *pdev, 1105 - const struct pci_device_id *id) 1110 + static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 1106 1111 { 1107 1112 unsigned index = id->driver_data; 1108 1113 struct Scsi_Host *shost; ··· 1303 1310 __aac_shutdown((struct aac_dev *)shost->hostdata); 1304 1311 } 1305 1312 1306 - static void __devexit aac_remove_one(struct pci_dev *pdev) 1313 + static void aac_remove_one(struct pci_dev *pdev) 1307 1314 { 1308 1315 struct Scsi_Host *shost = pci_get_drvdata(pdev); 1309 1316 struct aac_dev *aac = (struct aac_dev *)shost->hostdata; ··· 1334 1341 .name = AAC_DRIVERNAME, 1335 1342 .id_table = aac_pci_tbl, 1336 1343 .probe = aac_probe_one, 1337 - .remove = __devexit_p(aac_remove_one), 1344 + .remove = aac_remove_one, 1338 1345 .shutdown = aac_shutdown, 1339 1346 }; 1340 1347
+75 -77
drivers/scsi/advansys.c
··· 9526 9526 9527 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 9531 PortAddr eisa_cfg_iop = (PortAddr) ASC_GET_EISA_SLOT(iop_base) | 9532 9532 (PortAddr) (ASC_EISA_CFG_IOP_MASK); ··· 9537 9537 * Return the BIOS address of the adapter at the specified 9538 9538 * I/O port and with the specified bus type. 9539 9539 */ 9540 - static unsigned short __devinit 9541 - AscGetChipBiosAddress(PortAddr iop_base, unsigned short bus_type) 9540 + static unsigned short AscGetChipBiosAddress(PortAddr iop_base, 9541 + unsigned short bus_type) 9542 9542 { 9543 9543 unsigned short cfg_lsw; 9544 9544 unsigned short bios_addr; ··· 9569 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 9574 ushort cfg_lsw; 9575 9575 ··· 9583 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 9588 unsigned char sc; 9589 9589 ··· 9593 9593 return sc; 9594 9594 } 9595 9595 9596 - static unsigned char __devinit 9597 - AscGetChipVersion(PortAddr iop_base, unsigned short bus_type) 9596 + static unsigned char AscGetChipVersion(PortAddr iop_base, 9597 + unsigned short bus_type) 9598 9598 { 9599 9599 if (bus_type & ASC_IS_EISA) { 9600 9600 PortAddr eisa_iop; ··· 9608 9608 } 9609 9609 9610 9610 #ifdef CONFIG_ISA 9611 - static void __devinit AscEnableIsaDma(uchar dma_channel) 9611 + static void AscEnableIsaDma(uchar dma_channel) 9612 9612 { 9613 9613 if (dma_channel < 4) { 9614 9614 outp(0x000B, (ushort)(0xC0 | dma_channel)); ··· 9638 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 9643 if (bus_type & ASC_IS_ISA) 9644 9644 return ASC_MAX_ISA_DMA_COUNT; ··· 9648 9648 } 9649 9649 9650 9650 #ifdef CONFIG_ISA 9651 - static ushort __devinit AscGetIsaDmaChannel(PortAddr iop_base) 9651 + static ushort AscGetIsaDmaChannel(PortAddr iop_base) 9652 9652 { 9653 9653 ushort channel; 9654 9654 ··· 9660 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 9665 ushort cfg_lsw; 9666 9666 uchar value; ··· 9678 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 9683 uchar speed_value; 9684 9684 ··· 9689 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 9694 speed_value &= 0x07; 9695 9695 AscSetBank(iop_base, 1); ··· 9699 9699 } 9700 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 9704 int i; 9705 9705 PortAddr iop_base; ··· 9786 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 9791 int retry; 9792 9792 ··· 9801 9801 return 0; 9802 9802 } 9803 9803 9804 - static void __devinit AscWaitEEPRead(void) 9804 + static void AscWaitEEPRead(void) 9805 9805 { 9806 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 9811 ushort read_wval; 9812 9812 uchar cmd_reg; ··· 9821 9821 return read_wval; 9822 9822 } 9823 9823 9824 - static ushort __devinit 9825 - AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) 9824 + static ushort AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, 9825 + ushort bus_type) 9826 9826 { 9827 9827 ushort wval; 9828 9828 ushort sum; ··· 9868 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 9873 PortAddr iop_base; 9874 9874 ushort q_addr; ··· 9890 9890 return (sta); 9891 9891 } 9892 9892 9893 - static void __devinit AscWaitEEPWrite(void) 9893 + static void AscWaitEEPWrite(void) 9894 9894 { 9895 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 9900 ushort read_back; 9901 9901 int retry; ··· 9914 9914 } 9915 9915 } 9916 9916 9917 - static ushort __devinit 9918 - AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val) 9917 + static ushort AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val) 9919 9918 { 9920 9919 ushort read_wval; 9921 9920 ··· 9934 9935 return (read_wval); 9935 9936 } 9936 9937 9937 - static int __devinit 9938 - AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) 9938 + static int AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, 9939 + ushort bus_type) 9939 9940 { 9940 9941 int n_error; 9941 9942 ushort *wbuf; ··· 10030 10031 return n_error; 10031 10032 } 10032 10033 10033 - static int __devinit 10034 - AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type) 10034 + static int AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, 10035 + ushort bus_type) 10035 10036 { 10036 10037 int retry; 10037 10038 int n_error; ··· 10049 10050 return n_error; 10050 10051 } 10051 10052 10052 - static ushort __devinit AscInitFromEEP(ASC_DVC_VAR *asc_dvc) 10053 + static ushort AscInitFromEEP(ASC_DVC_VAR *asc_dvc) 10053 10054 { 10054 10055 ASCEEP_CONFIG eep_config_buf; 10055 10056 ASCEEP_CONFIG *eep_config; ··· 10214 10215 return (warn_code); 10215 10216 } 10216 10217 10217 - static int __devinit AscInitGetConfig(struct Scsi_Host *shost) 10218 + static int AscInitGetConfig(struct Scsi_Host *shost) 10218 10219 { 10219 10220 struct asc_board *board = shost_priv(shost); 10220 10221 ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var; ··· 10268 10269 return asc_dvc->err_code; 10269 10270 } 10270 10271 10271 - static int __devinit AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) 10272 + static int AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) 10272 10273 { 10273 10274 struct asc_board *board = shost_priv(shost); 10274 10275 ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var; ··· 10382 10383 * on big-endian platforms so char fields read as words are actually being 10383 10384 * unswapped on big-endian platforms. 10384 10385 */ 10385 - static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config __devinitdata = { 10386 + static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config = { 10386 10387 ADV_EEPROM_BIOS_ENABLE, /* cfg_lsw */ 10387 10388 0x0000, /* cfg_msw */ 10388 10389 0xFFFF, /* disc_enable */ ··· 10420 10421 0 /* num_of_err */ 10421 10422 }; 10422 10423 10423 - static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar __devinitdata = { 10424 + static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar = { 10424 10425 0, /* cfg_lsw */ 10425 10426 0, /* cfg_msw */ 10426 10427 0, /* -disc_enable */ ··· 10458 10459 0 /* num_of_err */ 10459 10460 }; 10460 10461 10461 - static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config __devinitdata = { 10462 + static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config = { 10462 10463 ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ 10463 10464 0x0000, /* 01 cfg_msw */ 10464 10465 0xFFFF, /* 02 disc_enable */ ··· 10523 10524 0 /* 63 reserved */ 10524 10525 }; 10525 10526 10526 - static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar __devinitdata = { 10527 + static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar = { 10527 10528 0, /* 00 cfg_lsw */ 10528 10529 0, /* 01 cfg_msw */ 10529 10530 0, /* 02 disc_enable */ ··· 10588 10589 0 /* 63 reserved */ 10589 10590 }; 10590 10591 10591 - static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config __devinitdata = { 10592 + static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config = { 10592 10593 ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */ 10593 10594 0x0000, /* 01 cfg_msw */ 10594 10595 0xFFFF, /* 02 disc_enable */ ··· 10653 10654 0 /* 63 reserved */ 10654 10655 }; 10655 10656 10656 - static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar __devinitdata = { 10657 + static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar = { 10657 10658 0, /* 00 cfg_lsw */ 10658 10659 0, /* 01 cfg_msw */ 10659 10660 0, /* 02 disc_enable */ ··· 10722 10723 /* 10723 10724 * Wait for EEPROM command to complete 10724 10725 */ 10725 - static void __devinit AdvWaitEEPCmd(AdvPortAddr iop_base) 10726 + static void AdvWaitEEPCmd(AdvPortAddr iop_base) 10726 10727 { 10727 10728 int eep_delay_ms; 10728 10729 ··· 10741 10742 /* 10742 10743 * Read the EEPROM from specified location 10743 10744 */ 10744 - static ushort __devinit AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr) 10745 + static ushort AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr) 10745 10746 { 10746 10747 AdvWriteWordRegister(iop_base, IOPW_EE_CMD, 10747 10748 ASC_EEP_CMD_READ | eep_word_addr); ··· 10752 10753 /* 10753 10754 * Write the EEPROM from 'cfg_buf'. 10754 10755 */ 10755 - static void __devinit 10756 - AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) 10756 + static void AdvSet3550EEPConfig(AdvPortAddr iop_base, 10757 + ADVEEP_3550_CONFIG *cfg_buf) 10757 10758 { 10758 10759 ushort *wbuf; 10759 10760 ushort addr, chksum; ··· 10819 10820 /* 10820 10821 * Write the EEPROM from 'cfg_buf'. 10821 10822 */ 10822 - static void __devinit 10823 - AdvSet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf) 10823 + static void AdvSet38C0800EEPConfig(AdvPortAddr iop_base, 10824 + ADVEEP_38C0800_CONFIG *cfg_buf) 10824 10825 { 10825 10826 ushort *wbuf; 10826 10827 ushort *charfields; ··· 10886 10887 /* 10887 10888 * Write the EEPROM from 'cfg_buf'. 10888 10889 */ 10889 - static void __devinit 10890 - AdvSet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf) 10890 + static void AdvSet38C1600EEPConfig(AdvPortAddr iop_base, 10891 + ADVEEP_38C1600_CONFIG *cfg_buf) 10891 10892 { 10892 10893 ushort *wbuf; 10893 10894 ushort *charfields; ··· 10955 10956 * 10956 10957 * Return a checksum based on the EEPROM configuration read. 10957 10958 */ 10958 - static ushort __devinit 10959 - AdvGet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf) 10959 + static ushort AdvGet3550EEPConfig(AdvPortAddr iop_base, 10960 + ADVEEP_3550_CONFIG *cfg_buf) 10960 10961 { 10961 10962 ushort wval, chksum; 10962 10963 ushort *wbuf; ··· 10998 10999 * 10999 11000 * Return a checksum based on the EEPROM configuration read. 11000 11001 */ 11001 - static ushort __devinit 11002 - AdvGet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf) 11002 + static ushort AdvGet38C0800EEPConfig(AdvPortAddr iop_base, 11003 + ADVEEP_38C0800_CONFIG *cfg_buf) 11003 11004 { 11004 11005 ushort wval, chksum; 11005 11006 ushort *wbuf; ··· 11041 11042 * 11042 11043 * Return a checksum based on the EEPROM configuration read. 11043 11044 */ 11044 - static ushort __devinit 11045 - AdvGet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf) 11045 + static ushort AdvGet38C1600EEPConfig(AdvPortAddr iop_base, 11046 + ADVEEP_38C1600_CONFIG *cfg_buf) 11046 11047 { 11047 11048 ushort wval, chksum; 11048 11049 ushort *wbuf; ··· 11091 11092 * 11092 11093 * Note: Chip is stopped on entry. 11093 11094 */ 11094 - static int __devinit AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc) 11095 + static int AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc) 11095 11096 { 11096 11097 AdvPortAddr iop_base; 11097 11098 ushort warn_code; ··· 11241 11242 * 11242 11243 * Note: Chip is stopped on entry. 11243 11244 */ 11244 - static int __devinit AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc) 11245 + static int AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc) 11245 11246 { 11246 11247 AdvPortAddr iop_base; 11247 11248 ushort warn_code; ··· 11440 11441 * 11441 11442 * Note: Chip is stopped on entry. 11442 11443 */ 11443 - static int __devinit AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc) 11444 + static int AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc) 11444 11445 { 11445 11446 AdvPortAddr iop_base; 11446 11447 ushort warn_code; ··· 11660 11661 * For a non-fatal error return a warning code. If there are no warnings 11661 11662 * then 0 is returned. 11662 11663 */ 11663 - static int __devinit 11664 - AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) 11664 + static int AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) 11665 11665 { 11666 11666 struct asc_board *board = shost_priv(shost); 11667 11667 ADV_DVC_VAR *asc_dvc = &board->dvc_var.adv_dvc_var; ··· 11767 11769 .use_clustering = ENABLE_CLUSTERING, 11768 11770 }; 11769 11771 11770 - static int __devinit advansys_wide_init_chip(struct Scsi_Host *shost) 11772 + static int advansys_wide_init_chip(struct Scsi_Host *shost) 11771 11773 { 11772 11774 struct asc_board *board = shost_priv(shost); 11773 11775 struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var; ··· 11880 11882 } 11881 11883 } 11882 11884 11883 - static int __devinit advansys_board_found(struct Scsi_Host *shost, 11884 - unsigned int iop, int bus_type) 11885 + static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop, 11886 + int bus_type) 11885 11887 { 11886 11888 struct pci_dev *pdev; 11887 11889 struct asc_board *boardp = shost_priv(shost); ··· 12426 12428 * 10: 12 12427 12429 * 11: 15 12428 12430 */ 12429 - static unsigned int __devinit advansys_isa_irq_no(PortAddr iop_base) 12431 + static unsigned int advansys_isa_irq_no(PortAddr iop_base) 12430 12432 { 12431 12433 unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base); 12432 12434 unsigned int chip_irq = ((cfg_lsw >> 2) & 0x03) + 10; ··· 12435 12437 return chip_irq; 12436 12438 } 12437 12439 12438 - static int __devinit advansys_isa_probe(struct device *dev, unsigned int id) 12440 + static int advansys_isa_probe(struct device *dev, unsigned int id) 12439 12441 { 12440 12442 int err = -ENODEV; 12441 12443 PortAddr iop_base = _asc_def_iop_base[id]; ··· 12475 12477 return err; 12476 12478 } 12477 12479 12478 - static int __devexit advansys_isa_remove(struct device *dev, unsigned int id) 12480 + static int advansys_isa_remove(struct device *dev, unsigned int id) 12479 12481 { 12480 12482 int ioport = _asc_def_iop_base[id]; 12481 12483 advansys_release(dev_get_drvdata(dev)); ··· 12485 12487 12486 12488 static struct isa_driver advansys_isa_driver = { 12487 12489 .probe = advansys_isa_probe, 12488 - .remove = __devexit_p(advansys_isa_remove), 12490 + .remove = advansys_isa_remove, 12489 12491 .driver = { 12490 12492 .owner = THIS_MODULE, 12491 12493 .name = DRV_NAME, ··· 12503 12505 * 110: 15 12504 12506 * 111: invalid 12505 12507 */ 12506 - static unsigned int __devinit advansys_vlb_irq_no(PortAddr iop_base) 12508 + static unsigned int advansys_vlb_irq_no(PortAddr iop_base) 12507 12509 { 12508 12510 unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base); 12509 12511 unsigned int chip_irq = ((cfg_lsw >> 2) & 0x07) + 9; ··· 12512 12514 return chip_irq; 12513 12515 } 12514 12516 12515 - static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id) 12517 + static int advansys_vlb_probe(struct device *dev, unsigned int id) 12516 12518 { 12517 12519 int err = -ENODEV; 12518 12520 PortAddr iop_base = _asc_def_iop_base[id]; ··· 12559 12561 12560 12562 static struct isa_driver advansys_vlb_driver = { 12561 12563 .probe = advansys_vlb_probe, 12562 - .remove = __devexit_p(advansys_isa_remove), 12564 + .remove = advansys_isa_remove, 12563 12565 .driver = { 12564 12566 .owner = THIS_MODULE, 12565 12567 .name = "advansys_vlb", 12566 12568 }, 12567 12569 }; 12568 12570 12569 - static struct eisa_device_id advansys_eisa_table[] __devinitdata = { 12571 + static struct eisa_device_id advansys_eisa_table[] = { 12570 12572 { "ABP7401" }, 12571 12573 { "ABP7501" }, 12572 12574 { "" } ··· 12593 12595 * 110: invalid 12594 12596 * 111: invalid 12595 12597 */ 12596 - static unsigned int __devinit advansys_eisa_irq_no(struct eisa_device *edev) 12598 + static unsigned int advansys_eisa_irq_no(struct eisa_device *edev) 12597 12599 { 12598 12600 unsigned short cfg_lsw = inw(edev->base_addr + 0xc86); 12599 12601 unsigned int chip_irq = ((cfg_lsw >> 8) & 0x07) + 10; ··· 12602 12604 return chip_irq; 12603 12605 } 12604 12606 12605 - static int __devinit advansys_eisa_probe(struct device *dev) 12607 + static int advansys_eisa_probe(struct device *dev) 12606 12608 { 12607 12609 int i, ioport, irq = 0; 12608 12610 int err; ··· 12675 12677 return err; 12676 12678 } 12677 12679 12678 - static __devexit int advansys_eisa_remove(struct device *dev) 12680 + static int advansys_eisa_remove(struct device *dev) 12679 12681 { 12680 12682 int i; 12681 12683 struct eisa_scsi_data *data = dev_get_drvdata(dev); ··· 12699 12701 .driver = { 12700 12702 .name = DRV_NAME, 12701 12703 .probe = advansys_eisa_probe, 12702 - .remove = __devexit_p(advansys_eisa_remove), 12704 + .remove = advansys_eisa_remove, 12703 12705 } 12704 12706 }; 12705 12707 12706 12708 /* PCI Devices supported by this driver */ 12707 - static struct pci_device_id advansys_pci_tbl[] __devinitdata = { 12709 + static struct pci_device_id advansys_pci_tbl[] = { 12708 12710 {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_1200A, 12709 12711 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, 12710 12712 {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_ABP940, ··· 12722 12724 12723 12725 MODULE_DEVICE_TABLE(pci, advansys_pci_tbl); 12724 12726 12725 - static void __devinit advansys_set_latency(struct pci_dev *pdev) 12727 + static void advansys_set_latency(struct pci_dev *pdev) 12726 12728 { 12727 12729 if ((pdev->device == PCI_DEVICE_ID_ASP_1200A) || 12728 12730 (pdev->device == PCI_DEVICE_ID_ASP_ABP940)) { ··· 12735 12737 } 12736 12738 } 12737 12739 12738 - static int __devinit 12739 - advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 12740 + static int advansys_pci_probe(struct pci_dev *pdev, 12741 + const struct pci_device_id *ent) 12740 12742 { 12741 12743 int err, ioport; 12742 12744 struct Scsi_Host *shost; ··· 12789 12791 return err; 12790 12792 } 12791 12793 12792 - static void __devexit advansys_pci_remove(struct pci_dev *pdev) 12794 + static void advansys_pci_remove(struct pci_dev *pdev) 12793 12795 { 12794 12796 advansys_release(pci_get_drvdata(pdev)); 12795 12797 pci_release_regions(pdev); ··· 12800 12802 .name = DRV_NAME, 12801 12803 .id_table = advansys_pci_tbl, 12802 12804 .probe = advansys_pci_probe, 12803 - .remove = __devexit_p(advansys_pci_remove), 12805 + .remove = advansys_pci_remove, 12804 12806 }; 12805 12807 12806 12808 static int __init advansys_init(void)
+1 -1
drivers/scsi/aha152x.c
··· 420 420 #endif /* MODULE */ 421 421 422 422 #ifdef __ISAPNP__ 423 - static struct isapnp_device_id id_table[] __devinitdata = { 423 + static struct isapnp_device_id id_table[] = { 424 424 { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1502), 0 }, 425 425 { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1505), 0 }, 426 426 { ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1510), 0 },
+2 -2
drivers/scsi/aha1740.c
··· 646 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 651 struct Scsi_Host *shpnt = dev_get_drvdata(dev); 652 652 struct aha1740_hostdata *host = HOSTDATA (shpnt); ··· 677 677 .driver = { 678 678 .name = "aha1740", 679 679 .probe = aha1740_probe, 680 - .remove = __devexit_p (aha1740_remove), 680 + .remove = aha1740_remove, 681 681 }, 682 682 }; 683 683
+11 -12
drivers/scsi/aic94xx/aic94xx_init.c
··· 85 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 90 int err, i; 91 91 struct asd_ha_addrspace *io_handle; ··· 146 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 151 int i = PCI_IOBAR_OFFSET, err; 152 152 struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0]; ··· 175 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 180 int err; 181 181 u16 cmd_reg; ··· 221 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 226 int err, i; 227 227 ··· 257 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 262 int err = asd_common_setup(asd_ha); 263 263 ··· 272 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 277 int err = asd_common_setup(asd_ha); 278 278 ··· 531 531 static const struct asd_pcidev_struct { 532 532 const char * name; 533 533 int (*setup)(struct asd_ha_struct *asd_ha); 534 - } asd_pcidev_data[] __devinitconst = { 534 + } asd_pcidev_data[] = { 535 535 /* Id 0 is used for dynamic ids. */ 536 536 { .name = "Adaptec AIC-94xx SAS/SATA Host Adapter", 537 537 .setup = asd_aic9410_setup ··· 731 731 return err; 732 732 } 733 733 734 - static int __devinit asd_pci_probe(struct pci_dev *dev, 735 - const struct pci_device_id *id) 734 + static int asd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) 736 735 { 737 736 const struct asd_pcidev_struct *asd_dev; 738 737 unsigned asd_id = (unsigned) id->driver_data; ··· 923 924 } 924 925 } 925 926 926 - static void __devexit asd_pci_remove(struct pci_dev *dev) 927 + static void asd_pci_remove(struct pci_dev *dev) 927 928 { 928 929 struct asd_ha_struct *asd_ha = pci_get_drvdata(dev); 929 930 ··· 1011 1012 .lldd_ata_set_dmamode = asd_set_dmamode, 1012 1013 }; 1013 1014 1014 - static const struct pci_device_id aic94xx_pci_table[] __devinitconst = { 1015 + static const struct pci_device_id aic94xx_pci_table[] = { 1015 1016 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x410),0, 0, 1}, 1016 1017 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x412),0, 0, 1}, 1017 1018 {PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x416),0, 0, 1}, ··· 1030 1031 .name = ASD_DRIVER_NAME, 1031 1032 .id_table = aic94xx_pci_table, 1032 1033 .probe = asd_pci_probe, 1033 - .remove = __devexit_p(asd_pci_remove), 1034 + .remove = asd_pci_remove, 1034 1035 }; 1035 1036 1036 1037 static int __init aic94xx_init(void)
+3 -4
drivers/scsi/arm/acornscsi.c
··· 2965 2965 .proc_name = "acornscsi", 2966 2966 }; 2967 2967 2968 - static int __devinit 2969 - acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) 2968 + static int acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id) 2970 2969 { 2971 2970 struct Scsi_Host *host; 2972 2971 AS_Host *ashost; ··· 3031 3032 return ret; 3032 3033 } 3033 3034 3034 - static void __devexit acornscsi_remove(struct expansion_card *ec) 3035 + static void acornscsi_remove(struct expansion_card *ec) 3035 3036 { 3036 3037 struct Scsi_Host *host = ecard_get_drvdata(ec); 3037 3038 AS_Host *ashost = (AS_Host *)host->hostdata; ··· 3062 3063 3063 3064 static struct ecard_driver acornscsi_driver = { 3064 3065 .probe = acornscsi_probe, 3065 - .remove = __devexit_p(acornscsi_remove), 3066 + .remove = acornscsi_remove, 3066 3067 .id_table = acornscsi_cids, 3067 3068 .drv = { 3068 3069 .name = "acornscsi",
+3 -4
drivers/scsi/arm/arxescsi.c
··· 276 276 .proc_name = "arxescsi", 277 277 }; 278 278 279 - static int __devinit 280 - arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) 279 + static int arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) 281 280 { 282 281 struct Scsi_Host *host; 283 282 struct arxescsi_info *info; ··· 339 340 return ret; 340 341 } 341 342 342 - static void __devexit arxescsi_remove(struct expansion_card *ec) 343 + static void arxescsi_remove(struct expansion_card *ec) 343 344 { 344 345 struct Scsi_Host *host = ecard_get_drvdata(ec); 345 346 ··· 358 359 359 360 static struct ecard_driver arxescsi_driver = { 360 361 .probe = arxescsi_probe, 361 - .remove = __devexit_p(arxescsi_remove), 362 + .remove = arxescsi_remove, 362 363 .id_table = arxescsi_cids, 363 364 .drv = { 364 365 .name = "arxescsi",
+4 -4
drivers/scsi/arm/cumana_1.c
··· 225 225 .proc_name = "CumanaSCSI-1", 226 226 }; 227 227 228 - static int __devinit 229 - cumanascsi1_probe(struct expansion_card *ec, const struct ecard_id *id) 228 + static int cumanascsi1_probe(struct expansion_card *ec, 229 + const struct ecard_id *id) 230 230 { 231 231 struct Scsi_Host *host; 232 232 int ret; ··· 298 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 303 struct Scsi_Host *host = ecard_get_drvdata(ec); 304 304 ··· 320 320 321 321 static struct ecard_driver cumanascsi1_driver = { 322 322 .probe = cumanascsi1_probe, 323 - .remove = __devexit_p(cumanascsi1_remove), 323 + .remove = cumanascsi1_remove, 324 324 .id_table = cumanascsi1_cids, 325 325 .drv = { 326 326 .name = "cumanascsi1",
+4 -4
drivers/scsi/arm/cumana_2.c
··· 397 397 .proc_name = "cumanascsi2", 398 398 }; 399 399 400 - static int __devinit 401 - cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id) 400 + static int cumanascsi2_probe(struct expansion_card *ec, 401 + const struct ecard_id *id) 402 402 { 403 403 struct Scsi_Host *host; 404 404 struct cumanascsi2_info *info; ··· 495 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 500 struct Scsi_Host *host = ecard_get_drvdata(ec); 501 501 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; ··· 519 519 520 520 static struct ecard_driver cumanascsi2_driver = { 521 521 .probe = cumanascsi2_probe, 522 - .remove = __devexit_p(cumanascsi2_remove), 522 + .remove = cumanascsi2_remove, 523 523 .id_table = cumanascsi2_cids, 524 524 .drv = { 525 525 .name = "cumanascsi2",
+3 -4
drivers/scsi/arm/eesox.c
··· 515 515 .proc_name = "eesox", 516 516 }; 517 517 518 - static int __devinit 519 - eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) 518 + static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) 520 519 { 521 520 struct Scsi_Host *host; 522 521 struct eesoxscsi_info *info; ··· 616 617 return ret; 617 618 } 618 619 619 - static void __devexit eesoxscsi_remove(struct expansion_card *ec) 620 + static void eesoxscsi_remove(struct expansion_card *ec) 620 621 { 621 622 struct Scsi_Host *host = ecard_get_drvdata(ec); 622 623 struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata; ··· 642 643 643 644 static struct ecard_driver eesoxscsi_driver = { 644 645 .probe = eesoxscsi_probe, 645 - .remove = __devexit_p(eesoxscsi_remove), 646 + .remove = eesoxscsi_remove, 646 647 .id_table = eesoxscsi_cids, 647 648 .drv = { 648 649 .name = "eesoxscsi",
+3 -4
drivers/scsi/arm/oak.c
··· 129 129 .proc_name = "oakscsi", 130 130 }; 131 131 132 - static int __devinit 133 - oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) 132 + static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id) 134 133 { 135 134 struct Scsi_Host *host; 136 135 int ret = -ENOMEM; ··· 181 182 return ret; 182 183 } 183 184 184 - static void __devexit oakscsi_remove(struct expansion_card *ec) 185 + static void oakscsi_remove(struct expansion_card *ec) 185 186 { 186 187 struct Scsi_Host *host = ecard_get_drvdata(ec); 187 188 ··· 201 202 202 203 static struct ecard_driver oakscsi_driver = { 203 204 .probe = oakscsi_probe, 204 - .remove = __devexit_p(oakscsi_remove), 205 + .remove = oakscsi_remove, 205 206 .id_table = oakscsi_cids, 206 207 .drv = { 207 208 .name = "oakscsi",
+4 -4
drivers/scsi/arm/powertec.c
··· 309 309 .proc_name = "powertec", 310 310 }; 311 311 312 - static int __devinit 313 - powertecscsi_probe(struct expansion_card *ec, const struct ecard_id *id) 312 + static int powertecscsi_probe(struct expansion_card *ec, 313 + const struct ecard_id *id) 314 314 { 315 315 struct Scsi_Host *host; 316 316 struct powertec_info *info; ··· 409 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 414 struct Scsi_Host *host = ecard_get_drvdata(ec); 415 415 struct powertec_info *info = (struct powertec_info *)host->hostdata; ··· 435 435 436 436 static struct ecard_driver powertecscsi_driver = { 437 437 .probe = powertecscsi_probe, 438 - .remove = __devexit_p(powertecscsi_remove), 438 + .remove = powertecscsi_remove, 439 439 .id_table = powertecscsi_cids, 440 440 .drv = { 441 441 .name = "powertecscsi",
+1 -1
drivers/scsi/atp870u.c
··· 3210 3210 .id_table = atp870u_id_table, 3211 3211 .name = "atp870u", 3212 3212 .probe = atp870u_probe, 3213 - .remove = __devexit_p(atp870u_remove), 3213 + .remove = atp870u_remove, 3214 3214 }; 3215 3215 3216 3216 static int __init atp870u_init(void)
+2 -2
drivers/scsi/be2iscsi/be_main.c
··· 4790 4790 msecs_to_jiffies(1000)); 4791 4791 } 4792 4792 4793 - static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev, 4794 - const struct pci_device_id *id) 4793 + static int beiscsi_dev_probe(struct pci_dev *pcidev, 4794 + const struct pci_device_id *id) 4795 4795 { 4796 4796 struct beiscsi_hba *phba = NULL; 4797 4797 struct hwi_controller *phwi_ctrlr;
+1 -1
drivers/scsi/bfa/bfad.c
··· 1739 1739 .name = BFAD_DRIVER_NAME, 1740 1740 .id_table = bfad_id_table, 1741 1741 .probe = bfad_pci_probe, 1742 - .remove = __devexit_p(bfad_pci_remove), 1742 + .remove = bfad_pci_remove, 1743 1743 .err_handler = &bfad_err_handler, 1744 1744 }; 1745 1745
+1 -1
drivers/scsi/bnx2fc/bnx2fc_fcoe.c
··· 25 25 #define DRV_MODULE_RELDATE "Jun 04, 2012" 26 26 27 27 28 - static char version[] __devinitdata = 28 + static char version[] = 29 29 "Broadcom NetXtreme II FCoE Driver " DRV_MODULE_NAME \ 30 30 " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 31 31
+1 -1
drivers/scsi/bnx2i/bnx2i_init.c
··· 21 21 #define DRV_MODULE_VERSION "2.7.2.2" 22 22 #define DRV_MODULE_RELDATE "Apr 25, 2012" 23 23 24 - static char version[] __devinitdata = 24 + static char version[] = 25 25 "Broadcom NetXtreme II iSCSI Driver " DRV_MODULE_NAME \ 26 26 " v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n"; 27 27
+3 -3
drivers/scsi/bvme6000_scsi.c
··· 34 34 35 35 static struct platform_device *bvme6000_scsi_device; 36 36 37 - static __devinit int 37 + static int 38 38 bvme6000_probe(struct platform_device *dev) 39 39 { 40 40 struct Scsi_Host *host; ··· 88 88 return -ENODEV; 89 89 } 90 90 91 - static __devexit int 91 + static int 92 92 bvme6000_device_remove(struct platform_device *dev) 93 93 { 94 94 struct Scsi_Host *host = platform_get_drvdata(dev); ··· 108 108 .owner = THIS_MODULE, 109 109 }, 110 110 .probe = bvme6000_probe, 111 - .remove = __devexit_p(bvme6000_device_remove), 111 + .remove = bvme6000_device_remove, 112 112 }; 113 113 114 114 static int __init bvme6000_scsi_init(void)
+6 -11
drivers/scsi/csiostor/csio_init.c
··· 115 115 .llseek = default_llseek, 116 116 }; 117 117 118 - static void __devinit 119 - csio_add_debugfs_mem(struct csio_hw *hw, const char *name, 120 - unsigned int idx, unsigned int size_mb) 118 + static void csio_add_debugfs_mem(struct csio_hw *hw, const char *name, 119 + unsigned int idx, unsigned int size_mb) 121 120 { 122 121 struct dentry *de; 123 122 ··· 126 127 de->d_inode->i_size = size_mb << 20; 127 128 } 128 129 129 - static int __devinit 130 - csio_setup_debugfs(struct csio_hw *hw) 130 + static int csio_setup_debugfs(struct csio_hw *hw) 131 131 { 132 132 int i; 133 133 ··· 529 531 * Allocates HW structure, DMA, memory resources, maps BARS to 530 532 * host memory and initializes HW module. 531 533 */ 532 - static struct csio_hw * __devinit 533 - csio_hw_alloc(struct pci_dev *pdev) 534 + static struct csio_hw *csio_hw_alloc(struct pci_dev *pdev) 534 535 { 535 536 struct csio_hw *hw; 536 537 ··· 953 956 * - Once hardware is ready, initiated scan of the host via 954 957 * scsi_scan_host. 955 958 */ 956 - static int __devinit 957 - csio_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 959 + static int csio_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 958 960 { 959 961 int rv; 960 962 int bars; ··· 1032 1036 * 1033 1037 * Used during hotplug operation. 1034 1038 */ 1035 - static void __devexit 1036 - csio_remove_one(struct pci_dev *pdev) 1039 + static void csio_remove_one(struct pci_dev *pdev) 1037 1040 { 1038 1041 struct csio_hw *hw = pci_get_drvdata(pdev); 1039 1042 int bars = pci_select_bars(pdev, IORESOURCE_MEM);
+25 -26
drivers/scsi/dc395x.c
··· 489 489 int def; /* default value */ 490 490 int safe; /* safe value */ 491 491 }; 492 - static struct ParameterData __devinitdata cfg_data[] = { 492 + static struct ParameterData cfg_data[] = { 493 493 { /* adapter id */ 494 494 CFG_PARAM_UNSET, 495 495 0, ··· 574 574 * set_safe_settings - if the use_safe_settings option is set then 575 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 579 if (use_safe_settings) 580 580 { ··· 593 593 * fix_settings - reset any boot parameters which are out of range 594 594 * back to the default values. 595 595 **/ 596 - static void __devinit fix_settings(void) 596 + static void fix_settings(void) 597 597 { 598 598 int i; 599 599 ··· 620 620 * Mapping from the eeprom delay index value (index into this array) 621 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 624 { 1, 3, 5, 10, 16, 30, 60, 120 }; 625 625 626 626 ··· 630 630 * 631 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 635 eeprom->delay_time = eeprom_index_to_delay_map[eeprom->delay_time]; 636 636 } ··· 643 643 * 644 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 648 u8 idx = 0; 649 649 while (idx < 7 && eeprom_index_to_delay_map[idx] < delay) ··· 659 659 * 660 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 664 u8 id; 665 665 ··· 3938 3938 * 3939 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 3943 /* ScsiPortStallExecution(30); wait 30 us */ 3944 3944 outb(5, io_port + TRM_S1040_GEN_TIMER); ··· 3955 3955 * @cmd: SB + op code (command) to send 3956 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 3960 int i; 3961 3961 u8 send_data; ··· 4000 4000 * @addr: offset into EEPROM 4001 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 4005 int i; 4006 4006 u8 send_data; ··· 4054 4054 * @eeprom: the data to write 4055 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 4059 u8 *b_eeprom = (u8 *)eeprom; 4060 4060 u8 addr; ··· 4094 4094 * 4095 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 4099 int i; 4100 4100 u8 read_byte; ··· 4132 4132 * @eeprom: where to store the data 4133 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 4137 u8 *b_eeprom = (u8 *)eeprom; 4138 4138 u8 addr; ··· 4162 4162 * @eeprom: caller allocated strcuture to read the eeprom data into 4163 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 4167 u16 *w_eeprom = (u16 *)eeprom; 4168 4168 u16 w_addr; ··· 4232 4232 * 4233 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 4237 dprintkl(KERN_INFO, "Used settings: AdapterID=%02i, Speed=%i(%02i.%01iMHz), dev_mode=0x%02x\n", 4238 4238 eeprom->scsi_id, ··· 4260 4260 /* 4261 4261 * Allocate SG tables; as we have to pci_map them, an SG list (struct SGentry*) 4262 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 4265 const unsigned mem_needed = (DC395x_MAX_SRB_CNT+1) 4266 4266 *SEGMENTX_LEN; ··· 4306 4306 * 4307 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 4311 u8 bval; 4312 4312 ··· 4350 4350 * 4351 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 4355 struct NvRamType *eeprom = &acb->eeprom; 4356 4356 int i; ··· 4412 4412 * 4413 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 4417 struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)host->hostdata; 4418 4418 struct NvRamType *eeprom = &acb->eeprom; ··· 4453 4453 * 4454 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 4458 struct NvRamType *eeprom = &acb->eeprom; 4459 4459 ··· 4506 4506 * Returns 0 if the initialization succeeds, any other value on 4507 4507 * failure. 4508 4508 **/ 4509 - static int __devinit adapter_init(struct AdapterCtlBlk *acb, 4510 - unsigned long io_port, u32 io_port_len, unsigned int irq) 4509 + static int adapter_init(struct AdapterCtlBlk *acb, unsigned long io_port, 4510 + u32 io_port_len, unsigned int irq) 4511 4511 { 4512 4512 if (!request_region(io_port, io_port_len, DC395X_NAME)) { 4513 4513 dprintkl(KERN_ERR, "Failed to reserve IO region 0x%lx\n", io_port); ··· 4794 4794 * 4795 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, 4798 - const struct pci_device_id *id) 4797 + static int dc395x_init_one(struct pci_dev *dev, const struct pci_device_id *id) 4799 4798 { 4800 4799 struct Scsi_Host *scsi_host = NULL; 4801 4800 struct AdapterCtlBlk *acb = NULL; ··· 4860 4861 * 4861 4862 * @dev: The PCI device to initialize. 4862 4863 **/ 4863 - static void __devexit dc395x_remove_one(struct pci_dev *dev) 4864 + static void dc395x_remove_one(struct pci_dev *dev) 4864 4865 { 4865 4866 struct Scsi_Host *scsi_host = pci_get_drvdata(dev); 4866 4867 struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)(scsi_host->hostdata); ··· 4891 4892 .name = DC395X_NAME, 4892 4893 .id_table = dc395x_pci_table, 4893 4894 .probe = dc395x_init_one, 4894 - .remove = __devexit_p(dc395x_remove_one), 4895 + .remove = dc395x_remove_one, 4895 4896 }; 4896 4897 4897 4898
+4 -4
drivers/scsi/dmx3191d.c
··· 68 68 .use_clustering = DISABLE_CLUSTERING, 69 69 }; 70 70 71 - static int __devinit dmx3191d_probe_one(struct pci_dev *pdev, 72 - const struct pci_device_id *id) 71 + static int dmx3191d_probe_one(struct pci_dev *pdev, 72 + const struct pci_device_id *id) 73 73 { 74 74 struct Scsi_Host *shost; 75 75 unsigned long io; ··· 123 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 128 struct Scsi_Host *shost = pci_get_drvdata(pdev); 129 129 ··· 150 150 .name = DMX3191D_DRIVER_NAME, 151 151 .id_table = dmx3191d_pci_tbl, 152 152 .probe = dmx3191d_probe_one, 153 - .remove = __devexit_p(dmx3191d_remove_one), 153 + .remove = dmx3191d_remove_one, 154 154 }; 155 155 156 156 static int __init dmx3191d_init(void)
+1 -1
drivers/scsi/fdomain.c
··· 1771 1771 #ifndef PCMCIA 1772 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 1775 { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, 1776 1776 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, 1777 1777 { }
+3 -4
drivers/scsi/fnic/fnic_main.c
··· 399 399 return fnic->data_src_addr; 400 400 } 401 401 402 - static int __devinit fnic_probe(struct pci_dev *pdev, 403 - const struct pci_device_id *ent) 402 + static int fnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 404 403 { 405 404 struct Scsi_Host *host; 406 405 struct fc_lport *lp; ··· 773 774 return err; 774 775 } 775 776 776 - static void __devexit fnic_remove(struct pci_dev *pdev) 777 + static void fnic_remove(struct pci_dev *pdev) 777 778 { 778 779 struct fnic *fnic = pci_get_drvdata(pdev); 779 780 struct fc_lport *lp = fnic->lport; ··· 848 849 .name = DRV_NAME, 849 850 .id_table = fnic_id_table, 850 851 .probe = fnic_probe, 851 - .remove = __devexit_p(fnic_remove), 852 + .remove = fnic_remove, 852 853 }; 853 854 854 855 static int __init fnic_init_module(void)
+1 -1
drivers/scsi/g_NCR5380.c
··· 939 939 MODULE_LICENSE("GPL"); 940 940 941 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 944 ISAPNP_ANY_ID, ISAPNP_ANY_ID, 945 945 ISAPNP_VENDOR('D', 'T', 'C'), ISAPNP_FUNCTION(0x436e),
+8 -9
drivers/scsi/gdth.c
··· 590 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 595 gdth_ha_str *ha = pci_get_drvdata(pdev); 596 596 ··· 602 602 pci_disable_device(pdev); 603 603 } 604 604 605 - static int __devinit gdth_pci_init_one(struct pci_dev *pdev, 606 - const struct pci_device_id *ent) 605 + static int gdth_pci_init_one(struct pci_dev *pdev, 606 + const struct pci_device_id *ent) 607 607 { 608 608 u16 vendor = pdev->vendor; 609 609 u16 device = pdev->device; ··· 855 855 #endif /* CONFIG_ISA */ 856 856 857 857 #ifdef CONFIG_PCI 858 - static int __devinit gdth_init_pci(struct pci_dev *pdev, gdth_pci_str *pcistr, 859 - gdth_ha_str *ha) 858 + static int gdth_init_pci(struct pci_dev *pdev, gdth_pci_str *pcistr, 859 + gdth_ha_str *ha) 860 860 { 861 861 register gdt6_dpram_str __iomem *dp6_ptr; 862 862 register gdt6c_dpram_str __iomem *dp6c_ptr; ··· 1239 1239 1240 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 1244 unsigned long flags; 1245 1245 gdt2_dpram_str __iomem *dp2_ptr; ··· 1555 1555 1556 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 1560 u16 cdev_cnt, i; 1561 1561 int ok; ··· 4959 4959 #endif /* CONFIG_EISA */ 4960 4960 4961 4961 #ifdef CONFIG_PCI 4962 - static int __devinit gdth_pci_probe_one(gdth_pci_str *pcistr, 4963 - gdth_ha_str **ha_out) 4962 + static int gdth_pci_probe_one(gdth_pci_str *pcistr, gdth_ha_str **ha_out) 4964 4963 { 4965 4964 struct Scsi_Host *shp; 4966 4965 gdth_ha_str *ha;
+5 -6
drivers/scsi/gvp11.c
··· 204 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 209 #ifdef CHECK_WD33C93 210 210 volatile unsigned char *sasr_3393, *scmd_3393; ··· 284 284 return 0; 285 285 } 286 286 287 - static int __devinit gvp11_probe(struct zorro_dev *z, 288 - const struct zorro_device_id *ent) 287 + static int gvp11_probe(struct zorro_dev *z, const struct zorro_device_id *ent) 289 288 { 290 289 struct Scsi_Host *instance; 291 290 unsigned long address; ··· 379 380 return error; 380 381 } 381 382 382 - static void __devexit gvp11_remove(struct zorro_dev *z) 383 + static void gvp11_remove(struct zorro_dev *z) 383 384 { 384 385 struct Scsi_Host *instance = zorro_get_drvdata(z); 385 386 struct gvp11_hostdata *hdata = shost_priv(instance); ··· 397 398 * SERIES I though). 398 399 */ 399 400 400 - static struct zorro_device_id gvp11_zorro_tbl[] __devinitdata = { 401 + static struct zorro_device_id gvp11_zorro_tbl[] = { 401 402 { ZORRO_PROD_GVP_COMBO_030_R3_SCSI, ~0x00ffffff }, 402 403 { ZORRO_PROD_GVP_SERIES_II, ~0x00ffffff }, 403 404 { ZORRO_PROD_GVP_GFORCE_030_SCSI, ~0x01ffffff }, ··· 413 414 .name = "gvp11", 414 415 .id_table = gvp11_zorro_tbl, 415 416 .probe = gvp11_probe, 416 - .remove = __devexit_p(gvp11_remove), 417 + .remove = gvp11_remove, 417 418 }; 418 419 419 420 static int __init gvp11_init(void)
+44 -48
drivers/scsi/hpsa.c
··· 189 189 /* performant mode helper functions */ 190 190 static void calc_bucket_map(int *bucket, int num_buckets, 191 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 193 static inline u32 next_command(struct ctlr_info *h, u8 q); 194 - static int __devinit hpsa_find_cfg_addrs(struct pci_dev *pdev, 195 - void __iomem *vaddr, u32 *cfg_base_addr, u64 *cfg_base_addr_index, 196 - u64 *cfg_offset); 197 - static int __devinit hpsa_pci_find_memory_BAR(struct pci_dev *pdev, 198 - unsigned long *memory_bar); 199 - static int __devinit hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id); 200 - static int __devinit hpsa_wait_for_board_state(struct pci_dev *pdev, 201 - void __iomem *vaddr, int wait_for_ready); 194 + static int hpsa_find_cfg_addrs(struct pci_dev *pdev, void __iomem *vaddr, 195 + u32 *cfg_base_addr, u64 *cfg_base_addr_index, 196 + u64 *cfg_offset); 197 + static int hpsa_pci_find_memory_BAR(struct pci_dev *pdev, 198 + unsigned long *memory_bar); 199 + static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id); 200 + static int hpsa_wait_for_board_state(struct pci_dev *pdev, void __iomem *vaddr, 201 + int wait_for_ready); 202 202 static inline void finish_cmd(struct CommandList *c); 203 203 #define BOARD_NOT_READY 0 204 204 #define BOARD_READY 1 ··· 3182 3182 } 3183 3183 } 3184 3184 3185 - static int __devinit hpsa_send_host_reset(struct ctlr_info *h, 3186 - unsigned char *scsi3addr, u8 reset_type) 3185 + static int hpsa_send_host_reset(struct ctlr_info *h, unsigned char *scsi3addr, 3186 + u8 reset_type) 3187 3187 { 3188 3188 struct CommandList *c; 3189 3189 ··· 3606 3606 * in simple mode, not performant mode due to the tag lookup. 3607 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, 3610 - unsigned char type) 3609 + static int hpsa_message(struct pci_dev *pdev, unsigned char opcode, 3610 + unsigned char type) 3611 3611 { 3612 3612 struct Command { 3613 3613 struct CommandListHeader CommandHeader; ··· 3756 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 3761 memset(driver_version, 0, len); 3762 3762 strncpy(driver_version, HPSA " " HPSA_DRIVER_VERSION, len - 1); 3763 3763 } 3764 3764 3765 - static __devinit int write_driver_ver_to_cfgtable( 3766 - struct CfgTable __iomem *cfgtable) 3765 + static int write_driver_ver_to_cfgtable(struct CfgTable __iomem *cfgtable) 3767 3766 { 3768 3767 char *driver_version; 3769 3768 int i, size = sizeof(cfgtable->driver_version); ··· 3778 3779 return 0; 3779 3780 } 3780 3781 3781 - static __devinit void read_driver_ver_from_cfgtable( 3782 - struct CfgTable __iomem *cfgtable, unsigned char *driver_ver) 3782 + static void read_driver_ver_from_cfgtable(struct CfgTable __iomem *cfgtable, 3783 + unsigned char *driver_ver) 3783 3784 { 3784 3785 int i; 3785 3786 ··· 3787 3788 driver_ver[i] = readb(&cfgtable->driver_version[i]); 3788 3789 } 3789 3790 3790 - static __devinit int controller_reset_failed( 3791 - struct CfgTable __iomem *cfgtable) 3791 + static int controller_reset_failed(struct CfgTable __iomem *cfgtable) 3792 3792 { 3793 3793 3794 3794 char *driver_ver, *old_driver_ver; ··· 3810 3812 /* This does a hard reset of the controller using PCI power management 3811 3813 * states or the using the doorbell register. 3812 3814 */ 3813 - static __devinit int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev) 3815 + static int hpsa_kdump_hard_reset_controller(struct pci_dev *pdev) 3814 3816 { 3815 3817 u64 cfg_offset; 3816 3818 u32 cfg_base_addr; ··· 4027 4029 * controllers that are capable. If not, we use IO-APIC mode. 4028 4030 */ 4029 4031 4030 - static void __devinit hpsa_interrupt_mode(struct ctlr_info *h) 4032 + static void hpsa_interrupt_mode(struct ctlr_info *h) 4031 4033 { 4032 4034 #ifdef CONFIG_PCI_MSI 4033 4035 int err, i; ··· 4075 4077 h->intr[h->intr_mode] = h->pdev->irq; 4076 4078 } 4077 4079 4078 - static int __devinit hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) 4080 + static int hpsa_lookup_board_id(struct pci_dev *pdev, u32 *board_id) 4079 4081 { 4080 4082 int i; 4081 4083 u32 subsystem_vendor_id, subsystem_device_id; ··· 4099 4101 return ARRAY_SIZE(products) - 1; /* generic unknown smart array */ 4100 4102 } 4101 4103 4102 - static int __devinit hpsa_pci_find_memory_BAR(struct pci_dev *pdev, 4103 - unsigned long *memory_bar) 4104 + static int hpsa_pci_find_memory_BAR(struct pci_dev *pdev, 4105 + unsigned long *memory_bar) 4104 4106 { 4105 4107 int i; 4106 4108 ··· 4116 4118 return -ENODEV; 4117 4119 } 4118 4120 4119 - static int __devinit hpsa_wait_for_board_state(struct pci_dev *pdev, 4120 - void __iomem *vaddr, int wait_for_ready) 4121 + static int hpsa_wait_for_board_state(struct pci_dev *pdev, void __iomem *vaddr, 4122 + int wait_for_ready) 4121 4123 { 4122 4124 int i, iterations; 4123 4125 u32 scratchpad; ··· 4141 4143 return -ENODEV; 4142 4144 } 4143 4145 4144 - static int __devinit hpsa_find_cfg_addrs(struct pci_dev *pdev, 4145 - void __iomem *vaddr, u32 *cfg_base_addr, u64 *cfg_base_addr_index, 4146 - u64 *cfg_offset) 4146 + static int hpsa_find_cfg_addrs(struct pci_dev *pdev, void __iomem *vaddr, 4147 + u32 *cfg_base_addr, u64 *cfg_base_addr_index, 4148 + u64 *cfg_offset) 4147 4149 { 4148 4150 *cfg_base_addr = readl(vaddr + SA5_CTCFG_OFFSET); 4149 4151 *cfg_offset = readl(vaddr + SA5_CTMEM_OFFSET); ··· 4156 4158 return 0; 4157 4159 } 4158 4160 4159 - static int __devinit hpsa_find_cfgtables(struct ctlr_info *h) 4161 + static int hpsa_find_cfgtables(struct ctlr_info *h) 4160 4162 { 4161 4163 u64 cfg_offset; 4162 4164 u32 cfg_base_addr; ··· 4185 4187 return 0; 4186 4188 } 4187 4189 4188 - static void __devinit hpsa_get_max_perf_mode_cmds(struct ctlr_info *h) 4190 + static void hpsa_get_max_perf_mode_cmds(struct ctlr_info *h) 4189 4191 { 4190 4192 h->max_commands = readl(&(h->cfgtable->MaxPerformantModeCommands)); 4191 4193 ··· 4206 4208 * max commands, max SG elements without chaining, and with chaining, 4207 4209 * SG chain block size, etc. 4208 4210 */ 4209 - static void __devinit hpsa_find_board_params(struct ctlr_info *h) 4211 + static void hpsa_find_board_params(struct ctlr_info *h) 4210 4212 { 4211 4213 hpsa_get_max_perf_mode_cmds(h); 4212 4214 h->nr_cmds = h->max_commands - 4; /* Allow room for some ioctls */ ··· 4264 4266 writel(dma_prefetch, h->vaddr + I2O_DMA1_CFG); 4265 4267 } 4266 4268 4267 - static void __devinit hpsa_wait_for_mode_change_ack(struct ctlr_info *h) 4269 + static void hpsa_wait_for_mode_change_ack(struct ctlr_info *h) 4268 4270 { 4269 4271 int i; 4270 4272 u32 doorbell_value; ··· 4285 4287 } 4286 4288 } 4287 4289 4288 - static int __devinit hpsa_enter_simple_mode(struct ctlr_info *h) 4290 + static int hpsa_enter_simple_mode(struct ctlr_info *h) 4289 4291 { 4290 4292 u32 trans_support; 4291 4293 ··· 4308 4310 return 0; 4309 4311 } 4310 4312 4311 - static int __devinit hpsa_pci_init(struct ctlr_info *h) 4313 + static int hpsa_pci_init(struct ctlr_info *h) 4312 4314 { 4313 4315 int prod_index, err; 4314 4316 ··· 4376 4378 return err; 4377 4379 } 4378 4380 4379 - static void __devinit hpsa_hba_inquiry(struct ctlr_info *h) 4381 + static void hpsa_hba_inquiry(struct ctlr_info *h) 4380 4382 { 4381 4383 int rc; 4382 4384 ··· 4392 4394 } 4393 4395 } 4394 4396 4395 - static __devinit int hpsa_init_reset_devices(struct pci_dev *pdev) 4397 + static int hpsa_init_reset_devices(struct pci_dev *pdev) 4396 4398 { 4397 4399 int rc, i; 4398 4400 ··· 4424 4426 return 0; 4425 4427 } 4426 4428 4427 - static __devinit int hpsa_allocate_cmd_pool(struct ctlr_info *h) 4429 + static int hpsa_allocate_cmd_pool(struct ctlr_info *h) 4428 4430 { 4429 4431 h->cmd_pool_bits = kzalloc( 4430 4432 DIV_ROUND_UP(h->nr_cmds, BITS_PER_LONG) * ··· 4497 4499 return 0; 4498 4500 } 4499 4501 4500 - static int __devinit hpsa_kdump_soft_reset(struct ctlr_info *h) 4502 + static int hpsa_kdump_soft_reset(struct ctlr_info *h) 4501 4503 { 4502 4504 if (hpsa_send_host_reset(h, RAID_CTLR_LUNID, 4503 4505 HPSA_RESET_TYPE_CONTROLLER)) { ··· 4711 4713 spin_unlock_irqrestore(&lockup_detector_lock, flags); 4712 4714 } 4713 4715 4714 - static int __devinit hpsa_init_one(struct pci_dev *pdev, 4715 - const struct pci_device_id *ent) 4716 + static int hpsa_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 4716 4717 { 4717 4718 int dac, rc; 4718 4719 struct ctlr_info *h; ··· 4907 4910 hpsa_free_irqs_and_disable_msix(h); 4908 4911 } 4909 4912 4910 - static void __devexit hpsa_free_device_info(struct ctlr_info *h) 4913 + static void hpsa_free_device_info(struct ctlr_info *h) 4911 4914 { 4912 4915 int i; 4913 4916 ··· 4915 4918 kfree(h->dev[i]); 4916 4919 } 4917 4920 4918 - static void __devexit hpsa_remove_one(struct pci_dev *pdev) 4921 + static void hpsa_remove_one(struct pci_dev *pdev) 4919 4922 { 4920 4923 struct ctlr_info *h; 4921 4924 ··· 4963 4966 static struct pci_driver hpsa_pci_driver = { 4964 4967 .name = HPSA, 4965 4968 .probe = hpsa_init_one, 4966 - .remove = __devexit_p(hpsa_remove_one), 4969 + .remove = hpsa_remove_one, 4967 4970 .id_table = hpsa_pci_device_id, /* id_table */ 4968 4971 .shutdown = hpsa_shutdown, 4969 4972 .suspend = hpsa_suspend, ··· 5007 5010 } 5008 5011 } 5009 5012 5010 - static __devinit void hpsa_enter_performant_mode(struct ctlr_info *h, 5011 - u32 use_short_tags) 5013 + static void hpsa_enter_performant_mode(struct ctlr_info *h, u32 use_short_tags) 5012 5014 { 5013 5015 int i; 5014 5016 unsigned long register_value; ··· 5075 5079 h->transMethod = CFGTBL_Trans_Performant; 5076 5080 } 5077 5081 5078 - static __devinit void hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h) 5082 + static void hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h) 5079 5083 { 5080 5084 u32 trans_support; 5081 5085 int i;
+1 -2
drivers/scsi/hptiop.c
··· 1282 1282 return -1; 1283 1283 } 1284 1284 1285 - static int __devinit hptiop_probe(struct pci_dev *pcidev, 1286 - const struct pci_device_id *id) 1285 + static int hptiop_probe(struct pci_dev *pcidev, const struct pci_device_id *id) 1287 1286 { 1288 1287 struct Scsi_Host *host = NULL; 1289 1288 struct hptiop_hba *hba;
+1 -1
drivers/scsi/ibmvscsi/ibmvfc.c
··· 4905 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 4909 {"fcp", "IBM,vfc-client"}, 4910 4910 { "", "" } 4911 4911 };
+1 -1
drivers/scsi/ibmvscsi/ibmvscsi.c
··· 2362 2362 * ibmvscsi_device_table: Used by vio.c to match devices in the device tree we 2363 2363 * support. 2364 2364 */ 2365 - static struct vio_device_id ibmvscsi_device_table[] __devinitdata = { 2365 + static struct vio_device_id ibmvscsi_device_table[] = { 2366 2366 {"vscsi", "IBM,v-scsi"}, 2367 2367 { "", "" } 2368 2368 };
+1 -1
drivers/scsi/ibmvscsi/ibmvstgt.c
··· 907 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 911 {"v-scsi-host", "IBM,v-scsi-host"}, 912 912 {"",""} 913 913 };
+1 -1
drivers/scsi/initio.c
··· 2992 2992 .name = "initio", 2993 2993 .id_table = initio_pci_tbl, 2994 2994 .probe = initio_probe_one, 2995 - .remove = __devexit_p(initio_remove_one), 2995 + .remove = initio_remove_one, 2996 2996 }; 2997 2997 2998 2998 static int __init initio_init_driver(void)
+15 -17
drivers/scsi/ipr.c
··· 8296 8296 * Return value: 8297 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 8301 int rc = 0; 8302 8302 unsigned long host_lock_flags = 0; ··· 8425 8425 * Return value: 8426 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 8430 struct ipr_cmnd *ipr_cmd; 8431 8431 struct ipr_ioarcb *ioarcb; ··· 8497 8497 * Return value: 8498 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 8502 struct pci_dev *pdev = ioa_cfg->pdev; 8503 8503 int i, rc = -ENOMEM; ··· 8601 8601 * Return value: 8602 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 8606 int i; 8607 8607 ··· 8625 8625 * Return value: 8626 8626 * none 8627 8627 **/ 8628 - static void __devinit ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, 8629 - struct Scsi_Host *host, struct pci_dev *pdev) 8628 + static void ipr_init_ioa_cfg(struct ipr_ioa_cfg *ioa_cfg, 8629 + struct Scsi_Host *host, struct pci_dev *pdev) 8630 8630 { 8631 8631 const struct ipr_interrupt_offsets *p; 8632 8632 struct ipr_interrupts *t; ··· 8712 8712 * Return value: 8713 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 8716 ipr_get_chip_info(const struct pci_device_id *dev_id) 8717 8717 { 8718 8718 int i; ··· 8734 8734 * Return value: 8735 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 8739 struct ipr_ioa_cfg *ioa_cfg = (struct ipr_ioa_cfg *)devp; 8740 8740 unsigned long lock_flags = 0; ··· 8761 8761 * Return value: 8762 8762 * 0 on success / non-zero on failure 8763 8763 **/ 8764 - static int __devinit ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, 8765 - struct pci_dev *pdev) 8764 + static int ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev) 8766 8765 { 8767 8766 int rc; 8768 8767 volatile u32 int_reg; ··· 8814 8815 * Return value: 8815 8816 * 0 on success / non-zero on failure 8816 8817 **/ 8817 - static int __devinit ipr_probe_ioa(struct pci_dev *pdev, 8818 - const struct pci_device_id *dev_id) 8818 + static int ipr_probe_ioa(struct pci_dev *pdev, 8819 + const struct pci_device_id *dev_id) 8819 8820 { 8820 8821 struct ipr_ioa_cfg *ioa_cfg; 8821 8822 struct Scsi_Host *host; ··· 9112 9113 * Return value: 9113 9114 * none 9114 9115 **/ 9115 - static void __devexit ipr_remove(struct pci_dev *pdev) 9116 + static void ipr_remove(struct pci_dev *pdev) 9116 9117 { 9117 9118 struct ipr_ioa_cfg *ioa_cfg = pci_get_drvdata(pdev); 9118 9119 ··· 9135 9136 * Return value: 9136 9137 * 0 on success / non-zero on failure 9137 9138 **/ 9138 - static int __devinit ipr_probe(struct pci_dev *pdev, 9139 - const struct pci_device_id *dev_id) 9139 + static int ipr_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id) 9140 9140 { 9141 9141 struct ipr_ioa_cfg *ioa_cfg; 9142 9142 int rc; ··· 9216 9218 wait_event(ioa_cfg->reset_wait_q, !ioa_cfg->in_reset_reload); 9217 9219 } 9218 9220 9219 - static struct pci_device_id ipr_pci_table[] __devinitdata = { 9221 + static struct pci_device_id ipr_pci_table[] = { 9220 9222 { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, 9221 9223 PCI_VENDOR_ID_IBM, IPR_SUBS_DEV_ID_5702, 0, 0, 0 }, 9222 9224 { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, ··· 9303 9305 .name = IPR_NAME, 9304 9306 .id_table = ipr_pci_table, 9305 9307 .probe = ipr_probe, 9306 - .remove = __devexit_p(ipr_remove), 9308 + .remove = ipr_remove, 9307 9309 .shutdown = ipr_shutdown, 9308 9310 .err_handler = &ipr_err_handler, 9309 9311 };
+5 -5
drivers/scsi/ips.c
··· 389 389 390 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); 393 - static void __devexit ips_remove_device(struct pci_dev *pci_dev); 392 + static int ips_insert_device(struct pci_dev *pci_dev, const struct pci_device_id *ent); 393 + static void ips_remove_device(struct pci_dev *pci_dev); 394 394 395 395 static struct pci_driver ips_pci_driver = { 396 396 .name = ips_hot_plug_name, 397 397 .id_table = ips_pci_table, 398 398 .probe = ips_insert_device, 399 - .remove = __devexit_p(ips_remove_device), 399 + .remove = ips_remove_device, 400 400 }; 401 401 402 402 ··· 6837 6837 /* Routine Description: */ 6838 6838 /* Remove one Adapter ( Hot Plugging ) */ 6839 6839 /*---------------------------------------------------------------------------*/ 6840 - static void __devexit 6840 + static void 6841 6841 ips_remove_device(struct pci_dev *pci_dev) 6842 6842 { 6843 6843 struct Scsi_Host *sh = pci_get_drvdata(pci_dev); ··· 6898 6898 /* Return Value: */ 6899 6899 /* 0 if Successful, else non-zero */ 6900 6900 /*---------------------------------------------------------------------------*/ 6901 - static int __devinit 6901 + static int 6902 6902 ips_insert_device(struct pci_dev *pci_dev, const struct pci_device_id *ent) 6903 6903 { 6904 6904 int index = -1;
+4 -4
drivers/scsi/isci/init.c
··· 282 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 287 int err, bar_num, bar_mask = 0; 288 288 void __iomem * const *iomap; ··· 616 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 621 struct isci_pci_info *pci_info; 622 622 int err, i; ··· 709 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 714 struct isci_host *ihost; 715 715 int i; ··· 778 778 .name = DRV_NAME, 779 779 .id_table = isci_id_table, 780 780 .probe = isci_pci_probe, 781 - .remove = __devexit_p(isci_pci_remove), 781 + .remove = isci_pci_remove, 782 782 #ifdef CONFIG_PM 783 783 .driver.pm = &isci_pm_ops, 784 784 #endif
+3 -3
drivers/scsi/jazz_esp.c
··· 129 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 134 struct scsi_host_template *tpnt = &scsi_esp_template; 135 135 struct Scsi_Host *host; ··· 201 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 206 struct esp *esp = dev_get_drvdata(&dev->dev); 207 207 unsigned int irq = esp->host->irq; ··· 223 223 224 224 static struct platform_driver esp_jazz_driver = { 225 225 .probe = esp_jazz_probe, 226 - .remove = __devexit_p(esp_jazz_remove), 226 + .remove = esp_jazz_remove, 227 227 .driver = { 228 228 .name = "jazz_esp", 229 229 .owner = THIS_MODULE,
+1 -1
drivers/scsi/lasi700.c
··· 168 168 .name = "lasi_scsi", 169 169 .id_table = lasi700_ids, 170 170 .probe = lasi700_probe, 171 - .remove = __devexit_p(lasi700_driver_remove), 171 + .remove = lasi700_driver_remove, 172 172 }; 173 173 174 174 static int __init
+7 -7
drivers/scsi/lpfc/lpfc_init.c
··· 8813 8813 * 0 - driver can claim the device 8814 8814 * negative value - driver can not claim the device 8815 8815 **/ 8816 - static int __devinit 8816 + static int 8817 8817 lpfc_pci_probe_one_s3(struct pci_dev *pdev, const struct pci_device_id *pid) 8818 8818 { 8819 8819 struct lpfc_hba *phba; ··· 8980 8980 * removed from PCI bus, it performs all the necessary cleanup for the HBA 8981 8981 * device to be removed from the PCI subsystem properly. 8982 8982 **/ 8983 - static void __devexit 8983 + static void 8984 8984 lpfc_pci_remove_one_s3(struct pci_dev *pdev) 8985 8985 { 8986 8986 struct Scsi_Host *shost = pci_get_drvdata(pdev); ··· 9587 9587 * 0 - driver can claim the device 9588 9588 * negative value - driver can not claim the device 9589 9589 **/ 9590 - static int __devinit 9590 + static int 9591 9591 lpfc_pci_probe_one_s4(struct pci_dev *pdev, const struct pci_device_id *pid) 9592 9592 { 9593 9593 struct lpfc_hba *phba; ··· 9779 9779 * removed from PCI bus, it performs all the necessary cleanup for the HBA 9780 9780 * device to be removed from the PCI subsystem properly. 9781 9781 **/ 9782 - static void __devexit 9782 + static void 9783 9783 lpfc_pci_remove_one_s4(struct pci_dev *pdev) 9784 9784 { 9785 9785 struct Scsi_Host *shost = pci_get_drvdata(pdev); ··· 10205 10205 * 0 - driver can claim the device 10206 10206 * negative value - driver can not claim the device 10207 10207 **/ 10208 - static int __devinit 10208 + static int 10209 10209 lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid) 10210 10210 { 10211 10211 int rc; ··· 10233 10233 * remove routine, which will perform all the necessary cleanup for the 10234 10234 * device to be removed from the PCI subsystem properly. 10235 10235 **/ 10236 - static void __devexit 10236 + static void 10237 10237 lpfc_pci_remove_one(struct pci_dev *pdev) 10238 10238 { 10239 10239 struct Scsi_Host *shost = pci_get_drvdata(pdev); ··· 10575 10575 .name = LPFC_DRIVER_NAME, 10576 10576 .id_table = lpfc_id_table, 10577 10577 .probe = lpfc_pci_probe_one, 10578 - .remove = __devexit_p(lpfc_pci_remove_one), 10578 + .remove = lpfc_pci_remove_one, 10579 10579 .suspend = lpfc_pci_suspend_one, 10580 10580 .resume = lpfc_pci_resume_one, 10581 10581 .err_handler = &lpfc_err_handler,
+3 -3
drivers/scsi/mac_esp.c
··· 481 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 486 struct scsi_host_template *tpnt = &scsi_esp_template; 487 487 struct Scsi_Host *host; ··· 591 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 596 struct mac_esp_priv *mep = platform_get_drvdata(dev); 597 597 struct esp *esp = mep->esp; ··· 614 614 615 615 static struct platform_driver esp_mac_driver = { 616 616 .probe = esp_mac_probe, 617 - .remove = __devexit_p(esp_mac_remove), 617 + .remove = esp_mac_remove, 618 618 .driver = { 619 619 .name = DRV_MODULE_NAME, 620 620 .owner = THIS_MODULE,
+3 -3
drivers/scsi/megaraid.c
··· 4522 4522 .eh_host_reset_handler = megaraid_reset, 4523 4523 }; 4524 4524 4525 - static int __devinit 4525 + static int 4526 4526 megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 4527 4527 { 4528 4528 struct Scsi_Host *host; ··· 4914 4914 mdelay(1000); 4915 4915 } 4916 4916 4917 - static void __devexit 4917 + static void 4918 4918 megaraid_remove_one(struct pci_dev *pdev) 4919 4919 { 4920 4920 struct Scsi_Host *host = pci_get_drvdata(pdev); ··· 5008 5008 .name = "megaraid_legacy", 5009 5009 .id_table = megaraid_pci_tbl, 5010 5010 .probe = megaraid_probe_one, 5011 - .remove = __devexit_p(megaraid_remove_one), 5011 + .remove = megaraid_remove_one, 5012 5012 .shutdown = megaraid_shutdown, 5013 5013 }; 5014 5014
+3 -3
drivers/scsi/megaraid/megaraid_mbox.c
··· 305 305 .name = "megaraid", 306 306 .id_table = pci_id_table_g, 307 307 .probe = megaraid_probe_one, 308 - .remove = __devexit_p(megaraid_detach_one), 308 + .remove = megaraid_detach_one, 309 309 .shutdown = megaraid_mbox_shutdown, 310 310 }; 311 311 ··· 434 434 * This routine should be called whenever a new adapter is detected by the 435 435 * PCI hotplug susbsystem. 436 436 */ 437 - static int __devinit 437 + static int 438 438 megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 439 439 { 440 440 adapter_t *adapter; ··· 735 735 * - Allocate memory required for all the commands 736 736 * - Use internal library of FW routines, build up complete soft state 737 737 */ 738 - static int __devinit 738 + static int 739 739 megaraid_init_mbox(adapter_t *adapter) 740 740 { 741 741 struct pci_dev *pdev;
+4 -4
drivers/scsi/megaraid/megaraid_sas_base.c
··· 3972 3972 * @pdev: PCI device structure 3973 3973 * @id: PCI ids of supported hotplugged adapter 3974 3974 */ 3975 - static int __devinit 3976 - megasas_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 3975 + static int megasas_probe_one(struct pci_dev *pdev, 3976 + const struct pci_device_id *id) 3977 3977 { 3978 3978 int rval, pos, i, j; 3979 3979 struct Scsi_Host *host; ··· 4525 4525 * megasas_detach_one - PCI hot"un"plug entry point 4526 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 4530 int i; 4531 4531 struct Scsi_Host *host; ··· 5119 5119 .name = "megaraid_sas", 5120 5120 .id_table = megasas_pci_table, 5121 5121 .probe = megasas_probe_one, 5122 - .remove = __devexit_p(megasas_detach_one), 5122 + .remove = megasas_detach_one, 5123 5123 .suspend = megasas_suspend, 5124 5124 .resume = megasas_resume, 5125 5125 .shutdown = megasas_shutdown,
+2 -2
drivers/scsi/mpt2sas/mpt2sas_scsih.c
··· 7686 7686 * Routine called when unloading the driver. 7687 7687 * Return nothing. 7688 7688 */ 7689 - static void __devexit 7689 + static void 7690 7690 _scsih_remove(struct pci_dev *pdev) 7691 7691 { 7692 7692 struct Scsi_Host *shost = pci_get_drvdata(pdev); ··· 8338 8338 .name = MPT2SAS_DRIVER_NAME, 8339 8339 .id_table = scsih_pci_table, 8340 8340 .probe = _scsih_probe, 8341 - .remove = __devexit_p(_scsih_remove), 8341 + .remove = _scsih_remove, 8342 8342 .shutdown = _scsih_shutdown, 8343 8343 .err_handler = &_scsih_err_handler, 8344 8344 #ifdef CONFIG_PM
+2 -3
drivers/scsi/mpt3sas/mpt3sas_scsih.c
··· 7374 7374 * Routine called when unloading the driver. 7375 7375 * Return nothing. 7376 7376 */ 7377 - static void __devexit 7378 - _scsih_remove(struct pci_dev *pdev) 7377 + static void _scsih_remove(struct pci_dev *pdev) 7379 7378 { 7380 7379 struct Scsi_Host *shost = pci_get_drvdata(pdev); 7381 7380 struct MPT3SAS_ADAPTER *ioc = shost_priv(shost); ··· 8043 8044 .name = MPT3SAS_DRIVER_NAME, 8044 8045 .id_table = scsih_pci_table, 8045 8046 .probe = _scsih_probe, 8046 - .remove = __devexit_p(_scsih_remove), 8047 + .remove = _scsih_remove, 8047 8048 .shutdown = _scsih_shutdown, 8048 8049 .err_handler = &_scsih_err_handler, 8049 8050 #ifdef CONFIG_PM
+3 -5
drivers/scsi/mvme16x_scsi.c
··· 34 34 35 35 static struct platform_device *mvme16x_scsi_device; 36 36 37 - static __devinit int 38 - mvme16x_probe(struct platform_device *dev) 37 + static int mvme16x_probe(struct platform_device *dev) 39 38 { 40 39 struct Scsi_Host * host = NULL; 41 40 struct NCR_700_Host_Parameters *hostdata; ··· 102 103 return -ENODEV; 103 104 } 104 105 105 - static __devexit int 106 - mvme16x_device_remove(struct platform_device *dev) 106 + static int mvme16x_device_remove(struct platform_device *dev) 107 107 { 108 108 struct Scsi_Host *host = platform_get_drvdata(dev); 109 109 struct NCR_700_Host_Parameters *hostdata = shost_priv(host); ··· 129 131 .owner = THIS_MODULE, 130 132 }, 131 133 .probe = mvme16x_probe, 132 - .remove = __devexit_p(mvme16x_device_remove), 134 + .remove = mvme16x_device_remove, 133 135 }; 134 136 135 137 static int __init mvme16x_scsi_init(void)
+4 -4
drivers/scsi/mvsas/mv_64xx.c
··· 41 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 46 void __iomem *regs = mvi->regs; 47 47 u32 tmp; ··· 54 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 59 void __iomem *regs = mvi->regs; 60 60 int i; ··· 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 161 void __iomem *regs = mvi->regs; 162 162 u32 tmp; ··· 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 255 void __iomem *regs = mvi->regs; 256 256 int i;
+3 -4
drivers/scsi/mvsas/mv_94xx.c
··· 216 216 mvs_write_port_vsr_data(mvi, phy_id, phy_cfg.v); 217 217 } 218 218 219 - static void __devinit 220 - mvs_94xx_config_reg_from_hba(struct mvs_info *mvi, int phy_id) 219 + static void mvs_94xx_config_reg_from_hba(struct mvs_info *mvi, int phy_id) 221 220 { 222 221 u32 temp; 223 222 temp = (u32)(*(u32 *)&mvi->hba_info_param.phy_tuning[phy_id]); ··· 257 258 mvi->hba_info_param.phy_rate[phy_id]); 258 259 } 259 260 260 - static void __devinit mvs_94xx_enable_xmt(struct mvs_info *mvi, int phy_id) 261 + static void mvs_94xx_enable_xmt(struct mvs_info *mvi, int phy_id) 261 262 { 262 263 void __iomem *regs = mvi->regs; 263 264 u32 tmp; ··· 330 331 mvs_write_port_vsr_data(mvi, phy_id, tmp & 0xfd7fffff); 331 332 } 332 333 333 - static int __devinit mvs_94xx_init(struct mvs_info *mvi) 334 + static int mvs_94xx_init(struct mvs_info *mvi) 334 335 { 335 336 void __iomem *regs = mvi->regs; 336 337 int i;
+1 -1
drivers/scsi/mvsas/mv_chips.h
··· 160 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 165 u32 tmp; 166 166
+9 -10
drivers/scsi/mvsas/mv_init.c
··· 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 101 struct mvs_phy *phy = &mvi->phy[phy_id]; 102 102 struct asd_sas_phy *sas_phy = &phy->sas_phy; ··· 235 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 240 int i = 0, slot_nr; 241 241 char pool_name[32]; ··· 373 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 377 const struct pci_device_id *ent, 378 378 struct Scsi_Host *shost, unsigned int id) 379 379 { ··· 444 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 448 const struct mvs_chip_info *chip_info) 449 449 { 450 450 int phy_nr, port_nr; unsigned short core_nr; ··· 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 490 const struct mvs_chip_info *chip_info) 491 491 { 492 492 int can_queue, i = 0, j = 0; ··· 537 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, 541 - const struct pci_device_id *ent) 540 + static int mvs_pci_init(struct pci_dev *pdev, const struct pci_device_id *ent) 542 541 { 543 542 unsigned int rc, nhost = 0; 544 543 struct mvs_info *mvi; ··· 644 645 return rc; 645 646 } 646 647 647 - static void __devexit mvs_pci_remove(struct pci_dev *pdev) 648 + static void mvs_pci_remove(struct pci_dev *pdev) 648 649 { 649 650 unsigned short core_nr, i = 0; 650 651 struct sas_ha_struct *sha = pci_get_drvdata(pdev); ··· 676 677 return; 677 678 } 678 679 679 - static struct pci_device_id __devinitdata mvs_pci_table[] = { 680 + static struct pci_device_id mvs_pci_table[] = { 680 681 { PCI_VDEVICE(MARVELL, 0x6320), chip_6320 }, 681 682 { PCI_VDEVICE(MARVELL, 0x6340), chip_6440 }, 682 683 { ··· 747 748 .name = DRV_NAME, 748 749 .id_table = mvs_pci_table, 749 750 .probe = mvs_pci_init, 750 - .remove = __devexit_p(mvs_pci_remove), 751 + .remove = mvs_pci_remove, 751 752 }; 752 753 753 754 static ssize_t
+2 -2
drivers/scsi/mvsas/mv_sas.c
··· 220 220 return rc; 221 221 } 222 222 223 - void __devinit mvs_set_sas_addr(struct mvs_info *mvi, int port_id, 224 - u32 off_lo, u32 off_hi, u64 sas_addr) 223 + void mvs_set_sas_addr(struct mvs_info *mvi, int port_id, u32 off_lo, 224 + u32 off_hi, u64 sas_addr) 225 225 { 226 226 u32 lo = (u32)sas_addr; 227 227 u32 hi = (u32)(sas_addr>>32);
+2 -2
drivers/scsi/mvsas/mv_sas.h
··· 456 456 void mvs_phys_reset(struct mvs_info *mvi, u32 phy_mask, int hard); 457 457 int mvs_phy_control(struct asd_sas_phy *sas_phy, enum phy_func func, 458 458 void *funcdata); 459 - void __devinit mvs_set_sas_addr(struct mvs_info *mvi, int port_id, 460 - u32 off_lo, u32 off_hi, u64 sas_addr); 459 + void mvs_set_sas_addr(struct mvs_info *mvi, int port_id, u32 off_lo, 460 + u32 off_hi, u64 sas_addr); 461 461 void mvs_scan_start(struct Scsi_Host *shost); 462 462 int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time); 463 463 int mvs_queue_command(struct sas_task *task, const int num,
+2 -3
drivers/scsi/mvumi.c
··· 2506 2506 * @pdev: PCI device structure 2507 2507 * @id: PCI ids of supported hotplugged adapter 2508 2508 */ 2509 - static int __devinit mvumi_probe_one(struct pci_dev *pdev, 2510 - const struct pci_device_id *id) 2509 + static int mvumi_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 2511 2510 { 2512 2511 struct Scsi_Host *host; 2513 2512 struct mvumi_hba *mhba; ··· 2727 2728 .name = MV_DRIVER_NAME, 2728 2729 .id_table = mvumi_pci_table, 2729 2730 .probe = mvumi_probe_one, 2730 - .remove = __devexit_p(mvumi_detach_one), 2731 + .remove = mvumi_detach_one, 2731 2732 .shutdown = mvumi_shutdown, 2732 2733 #ifdef CONFIG_PM 2733 2734 .suspend = mvumi_suspend,
+8 -8
drivers/scsi/nsp32.c
··· 76 76 /**************************************************************************** 77 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 81 .vendor = PCI_VENDOR_ID_IODATA, 82 82 .device = PCI_DEVICE_ID_NINJASCSI_32BI_CBSC_II, ··· 186 186 * function declaration 187 187 */ 188 188 /* module entry point */ 189 - static int __devinit nsp32_probe (struct pci_dev *, const struct pci_device_id *); 190 - static void __devexit nsp32_remove(struct pci_dev *); 191 - static int __init init_nsp32 (void); 192 - static void __exit exit_nsp32 (void); 189 + static int nsp32_probe (struct pci_dev *, const struct pci_device_id *); 190 + static void nsp32_remove(struct pci_dev *); 191 + static int __init init_nsp32 (void); 192 + static void __exit exit_nsp32 (void); 193 193 194 194 /* struct struct scsi_host_template */ 195 195 static int nsp32_proc_info (struct Scsi_Host *, char *, char **, off_t, int, int); ··· 3382 3382 /************************************************************************ 3383 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 3387 int ret; 3388 3388 nsp32_hw_data *data = &nsp32_data_base; ··· 3418 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 3423 struct Scsi_Host *host = pci_get_drvdata(pdev); 3424 3424 ··· 3435 3435 .name = "nsp32", 3436 3436 .id_table = nsp32_pci_table, 3437 3437 .probe = nsp32_probe, 3438 - .remove = __devexit_p(nsp32_remove), 3438 + .remove = nsp32_remove, 3439 3439 #ifdef CONFIG_PM 3440 3440 .suspend = nsp32_suspend, 3441 3441 .resume = nsp32_resume,
+15 -21
drivers/scsi/pm8001/pm8001_hwi.c
··· 47 47 * read_main_config_table - read the configure table and save it. 48 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 52 void __iomem *address = pm8001_ha->main_cfg_tbl_addr; 53 53 pm8001_ha->main_cfg_tbl.signature = pm8001_mr32(address, 0x00); ··· 83 83 * read_general_status_table - read the general status table and save it. 84 84 * @pm8001_ha: our hba card information 85 85 */ 86 - static void __devinit 87 - read_general_status_table(struct pm8001_hba_info *pm8001_ha) 86 + static void read_general_status_table(struct pm8001_hba_info *pm8001_ha) 88 87 { 89 88 void __iomem *address = pm8001_ha->general_stat_tbl_addr; 90 89 pm8001_ha->gs_tbl.gst_len_mpistate = pm8001_mr32(address, 0x00); ··· 117 118 * read_inbnd_queue_table - read the inbound queue table and save it. 118 119 * @pm8001_ha: our hba card information 119 120 */ 120 - static void __devinit 121 - read_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha) 121 + static void read_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha) 122 122 { 123 123 int inbQ_num = 1; 124 124 int i; ··· 135 137 * read_outbnd_queue_table - read the outbound queue table and save it. 136 138 * @pm8001_ha: our hba card information 137 139 */ 138 - static void __devinit 139 - read_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha) 140 + static void read_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha) 140 141 { 141 142 int outbQ_num = 1; 142 143 int i; ··· 153 156 * init_default_table_values - init the default table. 154 157 * @pm8001_ha: our hba card information 155 158 */ 156 - static void __devinit 157 - init_default_table_values(struct pm8001_hba_info *pm8001_ha) 159 + static void init_default_table_values(struct pm8001_hba_info *pm8001_ha) 158 160 { 159 161 int qn = 1; 160 162 int i; ··· 246 250 * update_main_config_table - update the main default table to the HBA. 247 251 * @pm8001_ha: our hba card information 248 252 */ 249 - static void __devinit 250 - update_main_config_table(struct pm8001_hba_info *pm8001_ha) 253 + static void update_main_config_table(struct pm8001_hba_info *pm8001_ha) 251 254 { 252 255 void __iomem *address = pm8001_ha->main_cfg_tbl_addr; 253 256 pm8001_mw32(address, 0x24, ··· 292 297 * update_inbnd_queue_table - update the inbound queue table to the HBA. 293 298 * @pm8001_ha: our hba card information 294 299 */ 295 - static void __devinit 296 - update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha, int number) 300 + static void update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha, 301 + int number) 297 302 { 298 303 void __iomem *address = pm8001_ha->inbnd_q_tbl_addr; 299 304 u16 offset = number * 0x20; ··· 313 318 * update_outbnd_queue_table - update the outbound queue table to the HBA. 314 319 * @pm8001_ha: our hba card information 315 320 */ 316 - static void __devinit 317 - update_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha, int number) 321 + static void update_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha, 322 + int number) 318 323 { 319 324 void __iomem *address = pm8001_ha->outbnd_q_tbl_addr; 320 325 u16 offset = number * 0x24; ··· 365 370 * @pm8001_ha: our hba card information 366 371 * @SSCbit: set SSCbit to 0 to disable all phys ssc; 1 to enable all phys ssc. 367 372 */ 368 - static void __devinit 369 - mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, u32 SSCbit) 373 + static void mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, 374 + u32 SSCbit) 370 375 { 371 376 u32 value, offset, i; 372 377 unsigned long flags; ··· 433 438 * @pm8001_ha: our hba card information 434 439 * @interval - interval time for each OPEN_REJECT (RETRY). The units are in 1us. 435 440 */ 436 - static void __devinit 437 - mpi_set_open_retry_interval_reg(struct pm8001_hba_info *pm8001_ha, 438 - u32 interval) 441 + static void mpi_set_open_retry_interval_reg(struct pm8001_hba_info *pm8001_ha, 442 + u32 interval) 439 443 { 440 444 u32 offset; 441 445 u32 value; ··· 595 601 * pm8001_chip_init - the main init function that initialize whole PM8001 chip. 596 602 * @pm8001_ha: our hba card information 597 603 */ 598 - static int __devinit pm8001_chip_init(struct pm8001_hba_info *pm8001_ha) 604 + static int pm8001_chip_init(struct pm8001_hba_info *pm8001_ha) 599 605 { 600 606 /* check the firmware status */ 601 607 if (-1 == check_fw_ready(pm8001_ha)) {
+14 -14
drivers/scsi/pm8001/pm8001_init.c
··· 104 104 *@pm8001_ha: our hba structure. 105 105 *@phy_id: phy id. 106 106 */ 107 - static void __devinit pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, 108 - int phy_id) 107 + static void pm8001_phy_init(struct pm8001_hba_info *pm8001_ha, int phy_id) 109 108 { 110 109 struct pm8001_phy *phy = &pm8001_ha->phy[phy_id]; 111 110 struct asd_sas_phy *sas_phy = &phy->sas_phy; ··· 194 195 * @pm8001_ha:our hba structure. 195 196 * 196 197 */ 197 - static int __devinit pm8001_alloc(struct pm8001_hba_info *pm8001_ha) 198 + static int pm8001_alloc(struct pm8001_hba_info *pm8001_ha) 198 199 { 199 200 int i; 200 201 spin_lock_init(&pm8001_ha->lock); ··· 359 360 * @ent: ent 360 361 * @shost: scsi host struct which has been initialized before. 361 362 */ 362 - static struct pm8001_hba_info *__devinit 363 - pm8001_pci_alloc(struct pci_dev *pdev, u32 chip_id, struct Scsi_Host *shost) 363 + static struct pm8001_hba_info *pm8001_pci_alloc(struct pci_dev *pdev, 364 + u32 chip_id, 365 + struct Scsi_Host *shost) 364 366 { 365 367 struct pm8001_hba_info *pm8001_ha; 366 368 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost); ··· 433 433 * @shost: scsi host which has been allocated outside. 434 434 * @chip_info: our ha struct. 435 435 */ 436 - static int __devinit pm8001_prep_sas_ha_init(struct Scsi_Host * shost, 437 - const struct pm8001_chip_info *chip_info) 436 + static int pm8001_prep_sas_ha_init(struct Scsi_Host *shost, 437 + const struct pm8001_chip_info *chip_info) 438 438 { 439 439 int phy_nr, port_nr; 440 440 struct asd_sas_phy **arr_phy; ··· 479 479 * @shost: scsi host which has been allocated outside 480 480 * @chip_info: our ha struct. 481 481 */ 482 - static void __devinit pm8001_post_sas_ha_init(struct Scsi_Host *shost, 483 - const struct pm8001_chip_info *chip_info) 482 + static void pm8001_post_sas_ha_init(struct Scsi_Host *shost, 483 + const struct pm8001_chip_info *chip_info) 484 484 { 485 485 int i = 0; 486 486 struct pm8001_hba_info *pm8001_ha; ··· 615 615 * pci driver it is invoked, all struct an hardware initilization should be done 616 616 * here, also, register interrupt 617 617 */ 618 - static int __devinit pm8001_pci_probe(struct pci_dev *pdev, 619 - const struct pci_device_id *ent) 618 + static int pm8001_pci_probe(struct pci_dev *pdev, 619 + const struct pci_device_id *ent) 620 620 { 621 621 unsigned int rc; 622 622 u32 pci_reg; ··· 707 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 712 struct sas_ha_struct *sha = pci_get_drvdata(pdev); 713 713 struct pm8001_hba_info *pm8001_ha; ··· 842 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 847 PCI_VDEVICE(PMC_Sierra, 0x8001), chip_8001 848 848 }, ··· 857 857 .name = DRV_NAME, 858 858 .id_table = pm8001_pci_table, 859 859 .probe = pm8001_pci_probe, 860 - .remove = __devexit_p(pm8001_pci_remove), 860 + .remove = pm8001_pci_remove, 861 861 .suspend = pm8001_pci_suspend, 862 862 .resume = pm8001_pci_resume, 863 863 };
+11 -20
drivers/scsi/pmcraid.c
··· 125 125 /* 126 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 129 { PCI_DEVICE(PCI_VENDOR_ID_PMC, PCI_DEVICE_ID_PMC_MAXRAID), 130 130 0, 0, (kernel_ulong_t)&pmcraid_chip_cfg[0] 131 131 }, ··· 4818 4818 * Return Value 4819 4819 * 0 in case of success; -ENOMEM in case of failure 4820 4820 */ 4821 - static int __devinit 4822 - pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) 4821 + static int pmcraid_allocate_cmd_blocks(struct pmcraid_instance *pinstance) 4823 4822 { 4824 4823 int i; 4825 4824 ··· 4854 4855 * Return Value 4855 4856 * 0 in case it can allocate all control blocks, otherwise -ENOMEM 4856 4857 */ 4857 - static int __devinit 4858 - pmcraid_allocate_control_blocks(struct pmcraid_instance *pinstance) 4858 + static int pmcraid_allocate_control_blocks(struct pmcraid_instance *pinstance) 4859 4859 { 4860 4860 int i; 4861 4861 ··· 4920 4922 * Return value 4921 4923 * 0 hrrq buffers are allocated, -ENOMEM otherwise. 4922 4924 */ 4923 - static int __devinit 4924 - pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) 4925 + static int pmcraid_allocate_host_rrqs(struct pmcraid_instance *pinstance) 4925 4926 { 4926 4927 int i, buffer_size; 4927 4928 ··· 5059 5062 * Return Value 5060 5063 * 0 for successful allocation, -ENOMEM for any failure 5061 5064 */ 5062 - static int __devinit 5063 - pmcraid_allocate_config_buffers(struct pmcraid_instance *pinstance) 5065 + static int pmcraid_allocate_config_buffers(struct pmcraid_instance *pinstance) 5064 5066 { 5065 5067 int i; 5066 5068 ··· 5177 5181 * Return Value 5178 5182 * 0 in case all of the blocks are allocated, -ENOMEM otherwise. 5179 5183 */ 5180 - static int __devinit pmcraid_init_buffers(struct pmcraid_instance *pinstance) 5184 + static int pmcraid_init_buffers(struct pmcraid_instance *pinstance) 5181 5185 { 5182 5186 int i; 5183 5187 ··· 5277 5281 * Return Value 5278 5282 * 0 on success, non-zero in case of any failure 5279 5283 */ 5280 - static int __devinit pmcraid_init_instance( 5281 - struct pci_dev *pdev, 5282 - struct Scsi_Host *host, 5283 - void __iomem *mapped_pci_addr 5284 - ) 5284 + static int pmcraid_init_instance(struct pci_dev *pdev, struct Scsi_Host *host, 5285 + void __iomem *mapped_pci_addr) 5285 5286 { 5286 5287 struct pmcraid_instance *pinstance = 5287 5288 (struct pmcraid_instance *)host->hostdata; ··· 5435 5442 * Return value 5436 5443 * none 5437 5444 */ 5438 - static void __devexit pmcraid_remove(struct pci_dev *pdev) 5445 + static void pmcraid_remove(struct pci_dev *pdev) 5439 5446 { 5440 5447 struct pmcraid_instance *pinstance = pci_get_drvdata(pdev); 5441 5448 ··· 5876 5883 * returns 0 if the device is claimed and successfully configured. 5877 5884 * returns non-zero error code in case of any failure 5878 5885 */ 5879 - static int __devinit pmcraid_probe( 5880 - struct pci_dev *pdev, 5881 - const struct pci_device_id *dev_id 5882 - ) 5886 + static int pmcraid_probe(struct pci_dev *pdev, 5887 + const struct pci_device_id *dev_id) 5883 5888 { 5884 5889 struct pmcraid_instance *pinstance; 5885 5890 struct Scsi_Host *host;
+1 -1
drivers/scsi/ps3rom.c
··· 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 364 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); 365 365 int error;
+4 -4
drivers/scsi/qla1280.c
··· 1438 1438 * Returns: 1439 1439 * 0 = success 1440 1440 */ 1441 - static int __devinit 1441 + static int 1442 1442 qla1280_initialize_adapter(struct scsi_qla_host *ha) 1443 1443 { 1444 1444 struct device_reg __iomem *reg; ··· 4230 4230 }; 4231 4231 4232 4232 4233 - static int __devinit 4233 + static int 4234 4234 qla1280_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 4235 4235 { 4236 4236 int devnum = id->driver_data; ··· 4399 4399 } 4400 4400 4401 4401 4402 - static void __devexit 4402 + static void 4403 4403 qla1280_remove_one(struct pci_dev *pdev) 4404 4404 { 4405 4405 struct Scsi_Host *host = pci_get_drvdata(pdev); ··· 4433 4433 .name = "qla1280", 4434 4434 .id_table = qla1280_pci_tbl, 4435 4435 .probe = qla1280_probe_one, 4436 - .remove = __devexit_p(qla1280_remove_one), 4436 + .remove = qla1280_remove_one, 4437 4437 }; 4438 4438 4439 4439 static int __init
+1 -1
drivers/scsi/qla2xxx/qla_os.c
··· 2154 2154 /* 2155 2155 * PCI driver interface 2156 2156 */ 2157 - static int __devinit 2157 + static int 2158 2158 qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 2159 2159 { 2160 2160 int ret = -ENODEV;
+3 -3
drivers/scsi/qla4xxx/ql4_os.c
··· 5124 5124 * It returns zero if successful. It also initializes all data necessary for 5125 5125 * the driver. 5126 5126 **/ 5127 - static int __devinit qla4xxx_probe_adapter(struct pci_dev *pdev, 5128 - const struct pci_device_id *ent) 5127 + static int qla4xxx_probe_adapter(struct pci_dev *pdev, 5128 + const struct pci_device_id *ent) 5129 5129 { 5130 5130 int ret = -ENODEV, status; 5131 5131 struct Scsi_Host *host; ··· 5464 5464 * qla4xxx_remove_adapter - callback function to remove adapter. 5465 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 5469 struct scsi_qla_host *ha; 5470 5470
+1 -1
drivers/scsi/qlogicfas.c
··· 142 142 MODULE_PARM_DESC(iobase, "I/O address"); 143 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 147 struct Scsi_Host *shost; 148 148 struct qlogicfas408_priv *priv;
+10 -10
drivers/scsi/qlogicpti.c
··· 461 461 462 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 466 const struct firmware *fw; 467 467 const char fwname[] = "qlogic/isp1000.bin"; ··· 670 670 671 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 675 spin_lock_irq(&qptichain_lock); 676 676 if (qptichain != NULL) { ··· 686 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 691 spin_lock_irq(&qptichain_lock); 692 692 if (qptichain == qpti) { ··· 701 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 706 struct platform_device *op = qpti->op; 707 707 ··· 724 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 729 struct platform_device *op = qpti->op; 730 730 ··· 749 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 754 struct platform_device *op = qpti->op; 755 755 struct device_node *dp; ··· 803 803 /* The request and response queues must each be aligned 804 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 808 struct platform_device *op = qpti->op; 809 809 ··· 1292 1292 }; 1293 1293 1294 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 1297 struct device_node *dp = op->dev.of_node; 1298 1298 struct Scsi_Host *host; ··· 1402 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 1407 struct qlogicpti *qpti = dev_get_drvdata(&op->dev); 1408 1408 ··· 1459 1459 .of_match_table = qpti_match, 1460 1460 }, 1461 1461 .probe = qpti_sbus_probe, 1462 - .remove = __devexit_p(qpti_sbus_remove), 1462 + .remove = qpti_sbus_remove, 1463 1463 }; 1464 1464 1465 1465 static int __init qpti_init(void)
+2 -2
drivers/scsi/sgiwd93.c
··· 226 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 231 struct sgiwd93_platform_data *pd = pdev->dev.platform_data; 232 232 unsigned char *wdregs = pd->wdregs; ··· 312 312 313 313 static struct platform_driver sgiwd93_driver = { 314 314 .probe = sgiwd93_probe, 315 - .remove = __devexit_p(sgiwd93_remove), 315 + .remove = sgiwd93_remove, 316 316 .driver = { 317 317 .name = "sgiwd93", 318 318 .owner = THIS_MODULE,
+5 -6
drivers/scsi/sim710.c
··· 94 94 .module = THIS_MODULE, 95 95 }; 96 96 97 - static __devinit int 98 - sim710_probe_common(struct device *dev, unsigned long base_addr, 99 - int irq, int clock, int differential, int scsi_id) 97 + static int sim710_probe_common(struct device *dev, unsigned long base_addr, 98 + int irq, int clock, int differential, 99 + int scsi_id) 100 100 { 101 101 struct Scsi_Host * host = NULL; 102 102 struct NCR_700_Host_Parameters *hostdata = ··· 153 153 return -ENODEV; 154 154 } 155 155 156 - static __devexit int 157 - sim710_device_remove(struct device *dev) 156 + static int sim710_device_remove(struct device *dev) 158 157 { 159 158 struct Scsi_Host *host = dev_get_drvdata(dev); 160 159 struct NCR_700_Host_Parameters *hostdata = ··· 220 221 .driver = { 221 222 .name = "sim710", 222 223 .probe = sim710_eisa_probe, 223 - .remove = __devexit_p(sim710_device_remove), 224 + .remove = sim710_device_remove, 224 225 }, 225 226 }; 226 227 #endif /* CONFIG_EISA */
+2 -2
drivers/scsi/sni_53c710.c
··· 65 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 70 unsigned long base; 71 71 struct NCR_700_Host_Parameters *hostdata; ··· 134 134 135 135 static struct platform_driver snirm710_driver = { 136 136 .probe = snirm710_probe, 137 - .remove = __devexit_p(snirm710_driver_remove), 137 + .remove = snirm710_driver_remove, 138 138 .driver = { 139 139 .name = "snirm_53c710", 140 140 .owner = THIS_MODULE,
+2 -3
drivers/scsi/stex.c
··· 1540 1540 pci_disable_msi(pdev); 1541 1541 } 1542 1542 1543 - static int __devinit 1544 - stex_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1543 + static int stex_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1545 1544 { 1546 1545 struct st_hba *hba; 1547 1546 struct Scsi_Host *host; ··· 1814 1815 .name = DRV_NAME, 1815 1816 .id_table = stex_pci_tbl, 1816 1817 .probe = stex_probe, 1817 - .remove = __devexit_p(stex_remove), 1818 + .remove = stex_remove, 1818 1819 .shutdown = stex_shutdown, 1819 1820 }; 1820 1821
+3 -3
drivers/scsi/sun3x_esp.c
··· 194 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 199 struct scsi_host_template *tpnt = &scsi_esp_template; 200 200 struct Scsi_Host *host; ··· 268 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 273 struct esp *esp = dev_get_drvdata(&dev->dev); 274 274 unsigned int irq = esp->host->irq; ··· 292 292 293 293 static struct platform_driver esp_sun3x_driver = { 294 294 .probe = esp_sun3x_probe, 295 - .remove = __devexit_p(esp_sun3x_remove), 295 + .remove = esp_sun3x_remove, 296 296 .driver = { 297 297 .name = "sun3x_esp", 298 298 .owner = THIS_MODULE,
+14 -16
drivers/scsi/sun_esp.c
··· 43 43 dvmahme 44 44 }; 45 45 46 - static int __devinit esp_sbus_setup_dma(struct esp *esp, 47 - struct platform_device *dma_of) 46 + static int esp_sbus_setup_dma(struct esp *esp, struct platform_device *dma_of) 48 47 { 49 48 esp->dma = dma_of; 50 49 ··· 78 79 79 80 } 80 81 81 - static int __devinit esp_sbus_map_regs(struct esp *esp, int hme) 82 + static int esp_sbus_map_regs(struct esp *esp, int hme) 82 83 { 83 84 struct platform_device *op = esp->dev; 84 85 struct resource *res; ··· 98 99 return 0; 99 100 } 100 101 101 - static int __devinit esp_sbus_map_command_block(struct esp *esp) 102 + static int esp_sbus_map_command_block(struct esp *esp) 102 103 { 103 104 struct platform_device *op = esp->dev; 104 105 ··· 110 111 return 0; 111 112 } 112 113 113 - static int __devinit esp_sbus_register_irq(struct esp *esp) 114 + static int esp_sbus_register_irq(struct esp *esp) 114 115 { 115 116 struct Scsi_Host *host = esp->host; 116 117 struct platform_device *op = esp->dev; ··· 119 120 return request_irq(host->irq, scsi_esp_intr, IRQF_SHARED, "ESP", esp); 120 121 } 121 122 122 - static void __devinit esp_get_scsi_id(struct esp *esp, struct platform_device *espdma) 123 + static void esp_get_scsi_id(struct esp *esp, struct platform_device *espdma) 123 124 { 124 125 struct platform_device *op = esp->dev; 125 126 struct device_node *dp; ··· 141 142 esp->scsi_id_mask = (1 << esp->scsi_id); 142 143 } 143 144 144 - static void __devinit esp_get_differential(struct esp *esp) 145 + static void esp_get_differential(struct esp *esp) 145 146 { 146 147 struct platform_device *op = esp->dev; 147 148 struct device_node *dp; ··· 153 154 esp->flags &= ~ESP_FLAG_DIFFERENTIAL; 154 155 } 155 156 156 - static void __devinit esp_get_clock_params(struct esp *esp) 157 + static void esp_get_clock_params(struct esp *esp) 157 158 { 158 159 struct platform_device *op = esp->dev; 159 160 struct device_node *bus_dp, *dp; ··· 169 170 esp->cfreq = fmhz; 170 171 } 171 172 172 - static void __devinit esp_get_bursts(struct esp *esp, struct platform_device *dma_of) 173 + static void esp_get_bursts(struct esp *esp, struct platform_device *dma_of) 173 174 { 174 175 struct device_node *dma_dp = dma_of->dev.of_node; 175 176 struct platform_device *op = esp->dev; ··· 194 195 esp->bursts = bursts; 195 196 } 196 197 197 - static void __devinit esp_sbus_get_props(struct esp *esp, struct platform_device *espdma) 198 + static void esp_sbus_get_props(struct esp *esp, struct platform_device *espdma) 198 199 { 199 200 esp_get_scsi_id(esp, espdma); 200 201 esp_get_differential(esp); ··· 486 487 .dma_error = sbus_esp_dma_error, 487 488 }; 488 489 489 - static int __devinit esp_sbus_probe_one(struct platform_device *op, 490 - struct platform_device *espdma, 491 - int hme) 490 + static int esp_sbus_probe_one(struct platform_device *op, 491 + struct platform_device *espdma, int hme) 492 492 { 493 493 struct scsi_host_template *tpnt = &scsi_esp_template; 494 494 struct Scsi_Host *host; ··· 560 562 return err; 561 563 } 562 564 563 - static int __devinit esp_sbus_probe(struct platform_device *op) 565 + static int esp_sbus_probe(struct platform_device *op) 564 566 { 565 567 struct device_node *dma_node = NULL; 566 568 struct device_node *dp = op->dev.of_node; ··· 583 585 return esp_sbus_probe_one(op, dma_of, hme); 584 586 } 585 587 586 - static int __devexit esp_sbus_remove(struct platform_device *op) 588 + static int esp_sbus_remove(struct platform_device *op) 587 589 { 588 590 struct esp *esp = dev_get_drvdata(&op->dev); 589 591 struct platform_device *dma_of = esp->dma; ··· 637 639 .of_match_table = esp_match, 638 640 }, 639 641 .probe = esp_sbus_probe, 640 - .remove = __devexit_p(esp_sbus_remove), 642 + .remove = esp_sbus_remove, 641 643 }; 642 644 643 645 static int __init sunesp_init(void)
+1 -1
drivers/scsi/sym53c416.c
··· 581 581 } 582 582 583 583 584 - static struct isapnp_device_id id_table[] __devinitdata = { 584 + static struct isapnp_device_id id_table[] = { 585 585 { ISAPNP_ANY_ID, ISAPNP_ANY_ID, 586 586 ISAPNP_VENDOR('S','L','I'), ISAPNP_FUNCTION(0x4161), 0 }, 587 587 { ISAPNP_ANY_ID, ISAPNP_ANY_ID,
+10 -13
drivers/scsi/sym53c8xx_2/sym_glue.c
··· 1284 1284 * sym_free_resources() should be used instead of this function after calling 1285 1285 * sym_attach(). 1286 1286 */ 1287 - static void __devinit 1288 - sym_iounmap_device(struct sym_device *device) 1287 + static void sym_iounmap_device(struct sym_device *device) 1289 1288 { 1290 1289 if (device->s.ioaddr) 1291 1290 pci_iounmap(device->pdev, device->s.ioaddr); ··· 1324 1325 * If all is OK, install interrupt handling and 1325 1326 * start the timer daemon. 1326 1327 */ 1327 - static struct Scsi_Host * __devinit sym_attach(struct scsi_host_template *tpnt, 1328 - int unit, struct sym_device *dev) 1328 + static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit, 1329 + struct sym_device *dev) 1329 1330 { 1330 1331 struct sym_data *sym_data; 1331 1332 struct sym_hcb *np = NULL; ··· 1480 1481 * Detect and try to read SYMBIOS and TEKRAM NVRAM. 1481 1482 */ 1482 1483 #if SYM_CONF_NVRAM_SUPPORT 1483 - static void __devinit sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) 1484 + static void sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) 1484 1485 { 1485 1486 devp->nvram = nvp; 1486 1487 nvp->type = 0; ··· 1493 1494 } 1494 1495 #endif /* SYM_CONF_NVRAM_SUPPORT */ 1495 1496 1496 - static int __devinit sym_check_supported(struct sym_device *device) 1497 + static int sym_check_supported(struct sym_device *device) 1497 1498 { 1498 1499 struct sym_chip *chip; 1499 1500 struct pci_dev *pdev = device->pdev; ··· 1530 1531 * Ignore Symbios chips controlled by various RAID controllers. 1531 1532 * These controllers set value 0x52414944 at RAM end - 16. 1532 1533 */ 1533 - static int __devinit sym_check_raid(struct sym_device *device) 1534 + static int sym_check_raid(struct sym_device *device) 1534 1535 { 1535 1536 unsigned int ram_size, ram_val; 1536 1537 ··· 1551 1552 return -ENODEV; 1552 1553 } 1553 1554 1554 - static int __devinit sym_set_workarounds(struct sym_device *device) 1555 + static int sym_set_workarounds(struct sym_device *device) 1555 1556 { 1556 1557 struct sym_chip *chip = &device->chip; 1557 1558 struct pci_dev *pdev = device->pdev; ··· 1601 1602 /* 1602 1603 * Map HBA registers and on-chip SRAM (if present). 1603 1604 */ 1604 - static int __devinit 1605 - sym_iomap_device(struct sym_device *device) 1605 + static int sym_iomap_device(struct sym_device *device) 1606 1606 { 1607 1607 struct pci_dev *pdev = device->pdev; 1608 1608 struct pci_bus_region bus_addr; ··· 1749 1751 1750 1752 static int attach_count; 1751 1753 1752 - static int __devinit sym2_probe(struct pci_dev *pdev, 1753 - const struct pci_device_id *ent) 1754 + static int sym2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) 1754 1755 { 1755 1756 struct sym_device sym_dev; 1756 1757 struct sym_nvram nvram; ··· 2074 2077 .get_signalling = sym2_get_signalling, 2075 2078 }; 2076 2079 2077 - static struct pci_device_id sym2_id_table[] __devinitdata = { 2080 + static struct pci_device_id sym2_id_table[] = { 2078 2081 { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C810, 2079 2082 PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, 2080 2083 { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C820,
+11 -12
drivers/scsi/tmscsim.c
··· 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 2224 u8 carryFlag = 1, j = 0x80, bval; 2225 2225 int i; ··· 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 2247 int i; 2248 2248 u16 wval = 0; ··· 2264 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 2269 u8 cmd = EEPROM_READ, i; 2270 2270 ··· 2282 2282 } 2283 2283 2284 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 2287 u8 *ptr = (u8 *) dc390_eepromBuf[index], id; 2288 2288 ··· 2305 2305 } 2306 2306 } 2307 2307 2308 - static int __devinitdata tmscsim_def[] = { 2308 + static int tmscsim_def[] = { 2309 2309 7, 2310 2310 0 /* 10MHz */, 2311 2311 PARITY_CHK_ | SEND_START_ | EN_DISCONNECT_ | SYNC_NEGO_ | TAG_QUEUEING_, ··· 2315 2315 }; 2316 2316 2317 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 2320 int i; 2321 2321 ··· 2335 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 2340 u8 interpd[] = {1, 3, 5, 10, 16, 30, 60, 120}; 2341 2341 u8 EEbuf[128]; ··· 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 2377 struct Scsi_Host *shost = pACB->pScsiHost; 2378 2378 u8 dstate; ··· 2422 2422 DC390_write8(DMA_Status, dstate); 2423 2423 } 2424 2424 2425 - static int __devinit dc390_probe_one(struct pci_dev *pdev, 2426 - const struct pci_device_id *id) 2425 + static int dc390_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) 2427 2426 { 2428 2427 struct dc390_acb *pACB; 2429 2428 struct Scsi_Host *shost; ··· 2531 2532 * 2532 2533 * @dev: The PCI device to remove. 2533 2534 */ 2534 - static void __devexit dc390_remove_one(struct pci_dev *dev) 2535 + static void dc390_remove_one(struct pci_dev *dev) 2535 2536 { 2536 2537 struct Scsi_Host *scsi_host = pci_get_drvdata(dev); 2537 2538 unsigned long iflags; ··· 2567 2568 .name = "tmscsim", 2568 2569 .id_table = tmscsim_pci_tbl, 2569 2570 .probe = dc390_probe_one, 2570 - .remove = __devexit_p(dc390_remove_one), 2571 + .remove = dc390_remove_one, 2571 2572 }; 2572 2573 2573 2574 static int __init dc390_module_init(void)
+2 -3
drivers/scsi/ufs/ufshcd.c
··· 1811 1811 * 1812 1812 * Returns 0 on success, non-zero value on failure 1813 1813 */ 1814 - static int __devinit 1815 - ufshcd_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1814 + static int ufshcd_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1816 1815 { 1817 1816 struct Scsi_Host *host; 1818 1817 struct ufs_hba *hba; ··· 1946 1947 .name = UFSHCD, 1947 1948 .id_table = ufshcd_pci_tbl, 1948 1949 .probe = ufshcd_probe, 1949 - .remove = __devexit_p(ufshcd_remove), 1950 + .remove = ufshcd_remove, 1950 1951 .shutdown = ufshcd_shutdown, 1951 1952 #ifdef CONFIG_PM 1952 1953 .suspend = ufshcd_suspend,
+3 -3
drivers/scsi/virtio_scsi.c
··· 679 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 684 struct Scsi_Host *shost; 685 685 struct virtio_scsi *vscsi; ··· 733 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 738 struct Scsi_Host *shost = virtio_scsi_host(vdev); 739 739 struct virtio_scsi *vscsi = shost_priv(shost); ··· 785 785 .freeze = virtscsi_freeze, 786 786 .restore = virtscsi_restore, 787 787 #endif 788 - .remove = __devexit_p(virtscsi_remove), 788 + .remove = virtscsi_remove, 789 789 }; 790 790 791 791 static int __init init(void)
+4 -5
drivers/scsi/vmw_pvscsi.c
··· 397 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 402 adapter->rings_state = pci_alloc_consistent(adapter->dev, PAGE_SIZE, 403 403 &adapter->ringStatePA); ··· 1152 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 1157 struct pvscsi_ctx *ctx; 1158 1158 int i; ··· 1233 1233 return numPhys; 1234 1234 } 1235 1235 1236 - static int __devinit pvscsi_probe(struct pci_dev *pdev, 1237 - const struct pci_device_id *id) 1236 + static int pvscsi_probe(struct pci_dev *pdev, const struct pci_device_id *id) 1238 1237 { 1239 1238 struct pvscsi_adapter *adapter; 1240 1239 struct Scsi_Host *host; ··· 1453 1454 .name = "vmw_pvscsi", 1454 1455 .id_table = pvscsi_pci_tbl, 1455 1456 .probe = pvscsi_probe, 1456 - .remove = __devexit_p(pvscsi_remove), 1457 + .remove = pvscsi_remove, 1457 1458 .shutdown = pvscsi_shutdown, 1458 1459 }; 1459 1460
+1 -1
drivers/scsi/zalon.c
··· 182 182 .name = "zalon", 183 183 .id_table = zalon_tbl, 184 184 .probe = zalon_probe, 185 - .remove = __devexit_p(zalon_remove), 185 + .remove = zalon_remove, 186 186 }; 187 187 188 188 static int __init zalon7xx_init(void)
+6 -6
drivers/scsi/zorro7xx.c
··· 38 38 const char *name; 39 39 unsigned long offset; 40 40 int absolute; /* offset is absolute address */ 41 - } zorro7xx_driver_data[] __devinitdata = { 41 + } zorro7xx_driver_data[] = { 42 42 { .name = "PowerUP 603e+", .offset = 0xf40000, .absolute = 1 }, 43 43 { .name = "WarpEngine 40xx", .offset = 0x40000 }, 44 44 { .name = "A4091", .offset = 0x800000 }, ··· 46 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 51 .id = ZORRO_PROD_PHASE5_BLIZZARD_603E_PLUS, 52 52 .driver_data = (unsigned long)&zorro7xx_driver_data[0], ··· 71 71 }; 72 72 MODULE_DEVICE_TABLE(zorro, zorro7xx_zorro_tbl); 73 73 74 - static int __devinit zorro7xx_init_one(struct zorro_dev *z, 75 - const struct zorro_device_id *ent) 74 + static int zorro7xx_init_one(struct zorro_dev *z, 75 + const struct zorro_device_id *ent) 76 76 { 77 77 struct Scsi_Host *host; 78 78 struct NCR_700_Host_Parameters *hostdata; ··· 150 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 155 struct Scsi_Host *host = zorro_get_drvdata(z); 156 156 struct NCR_700_Host_Parameters *hostdata = shost_priv(host); ··· 167 167 .name = "zorro7xx-scsi", 168 168 .id_table = zorro7xx_zorro_tbl, 169 169 .probe = zorro7xx_init_one, 170 - .remove = __devexit_p(zorro7xx_remove_one), 170 + .remove = zorro7xx_remove_one, 171 171 }; 172 172 173 173 static int __init zorro7xx_scsi_init(void)