mirror of
https://github.com/a52xq-dev/kernel.git
synced 2026-10-18 21:58:11 +07:00
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>
This commit is contained in:
parent
48c68c4f1b
commit
6f03979051
85 changed files with 463 additions and 525 deletions
|
|
@ -2029,7 +2029,7 @@ static struct scsi_host_template driver_template = {
|
|||
};
|
||||
|
||||
/* This function will probe and initialize a card */
|
||||
static int __devinit twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
||||
static int twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
||||
{
|
||||
struct Scsi_Host *host = NULL;
|
||||
TW_Device_Extension *tw_dev;
|
||||
|
|
@ -2305,7 +2305,7 @@ out_disable_device:
|
|||
#endif
|
||||
|
||||
/* PCI Devices supported by this driver */
|
||||
static struct pci_device_id twa_pci_tbl[] __devinitdata = {
|
||||
static struct pci_device_id twa_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9000,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9550SX,
|
||||
|
|
|
|||
|
|
@ -1604,7 +1604,7 @@ static struct scsi_host_template driver_template = {
|
|||
};
|
||||
|
||||
/* This function will probe and initialize a card */
|
||||
static int __devinit twl_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
||||
static int twl_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
||||
{
|
||||
struct Scsi_Host *host = NULL;
|
||||
TW_Device_Extension *tw_dev;
|
||||
|
|
@ -1893,7 +1893,7 @@ out_disable_device:
|
|||
#endif
|
||||
|
||||
/* PCI Devices supported by this driver */
|
||||
static struct pci_device_id twl_pci_tbl[] __devinitdata = {
|
||||
static struct pci_device_id twl_pci_tbl[] = {
|
||||
{ PCI_VDEVICE(3WARE, PCI_DEVICE_ID_3WARE_9750) },
|
||||
{ }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -2281,7 +2281,7 @@ static struct scsi_host_template driver_template = {
|
|||
};
|
||||
|
||||
/* This function will probe and initialize a card */
|
||||
static int __devinit tw_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
||||
static int tw_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
||||
{
|
||||
struct Scsi_Host *host = NULL;
|
||||
TW_Device_Extension *tw_dev;
|
||||
|
|
@ -2422,7 +2422,7 @@ static void tw_remove(struct pci_dev *pdev)
|
|||
} /* End tw_remove() */
|
||||
|
||||
/* PCI Devices supported by this driver */
|
||||
static struct pci_device_id tw_pci_tbl[] __devinitdata = {
|
||||
static struct pci_device_id tw_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_1000,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{ PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_7000,
|
||||
|
|
|
|||
|
|
@ -3615,7 +3615,7 @@ static void __exit BusLogic_exit(void)
|
|||
__setup("BusLogic=", BusLogic_Setup);
|
||||
|
||||
#ifdef MODULE
|
||||
static struct pci_device_id BusLogic_pci_tbl[] __devinitdata = {
|
||||
static struct pci_device_id BusLogic_pci_tbl[] = {
|
||||
{ PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{ PCI_VENDOR_ID_BUSLOGIC, PCI_DEVICE_ID_BUSLOGIC_MULTIMASTER_NC,
|
||||
|
|
|
|||
|
|
@ -814,7 +814,7 @@ static char *lprint_opcode(int opcode, char *pos, char *buffer, int length)
|
|||
* Locks: interrupts must be enabled when we are called
|
||||
*/
|
||||
|
||||
static int __devinit NCR5380_init(struct Scsi_Host *instance, int flags)
|
||||
static int NCR5380_init(struct Scsi_Host *instance, int flags)
|
||||
{
|
||||
NCR5380_local_declare();
|
||||
int i, pass;
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ MODULE_DESCRIPTION("NCR Dual700 SCSI Driver");
|
|||
MODULE_LICENSE("GPL");
|
||||
module_param(NCR_D700, charp, 0);
|
||||
|
||||
static __u8 __devinitdata id_array[2*(MCA_MAX_SLOT_NR + 1)] =
|
||||
static __u8 id_array[2*(MCA_MAX_SLOT_NR + 1)] =
|
||||
{ [0 ... 2*(MCA_MAX_SLOT_NR + 1)-1] = 7 };
|
||||
|
||||
#ifdef MODULE
|
||||
|
|
@ -173,7 +173,7 @@ struct NCR_D700_private {
|
|||
char pad;
|
||||
};
|
||||
|
||||
static int __devinit
|
||||
static int
|
||||
NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq,
|
||||
int slot, u32 region, int differential)
|
||||
{
|
||||
|
|
@ -243,7 +243,7 @@ NCR_D700_intr(int irq, void *data)
|
|||
* essentially connectecd to the MCA bus independently, it is easier
|
||||
* to set them up as two separate host adapters, rather than one
|
||||
* adapter with two channels */
|
||||
static int __devinit
|
||||
static int
|
||||
NCR_D700_probe(struct device *dev)
|
||||
{
|
||||
struct NCR_D700_private *p;
|
||||
|
|
@ -349,7 +349,7 @@ NCR_D700_probe(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void __devexit
|
||||
static void
|
||||
NCR_D700_remove_one(struct Scsi_Host *host)
|
||||
{
|
||||
scsi_remove_host(host);
|
||||
|
|
@ -359,7 +359,7 @@ NCR_D700_remove_one(struct Scsi_Host *host)
|
|||
release_region(host->base, 64);
|
||||
}
|
||||
|
||||
static int __devexit
|
||||
static int
|
||||
NCR_D700_remove(struct device *dev)
|
||||
{
|
||||
struct NCR_D700_private *p = dev_get_drvdata(dev);
|
||||
|
|
@ -380,7 +380,7 @@ static struct mca_driver NCR_D700_driver = {
|
|||
.name = "NCR_D700",
|
||||
.bus = &mca_bus_type,
|
||||
.probe = NCR_D700_probe,
|
||||
.remove = __devexit_p(NCR_D700_remove),
|
||||
.remove = NCR_D700_remove,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -351,7 +351,7 @@ static struct mca_driver NCR_Q720_driver = {
|
|||
.name = "NCR_Q720",
|
||||
.bus = &mca_bus_type,
|
||||
.probe = NCR_Q720_probe,
|
||||
.remove = __devexit_p(NCR_Q720_remove),
|
||||
.remove = NCR_Q720_remove,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1082,8 +1082,8 @@ static struct scsi_host_template inia100_template = {
|
|||
.use_clustering = ENABLE_CLUSTERING,
|
||||
};
|
||||
|
||||
static int __devinit inia100_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
static int inia100_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
{
|
||||
struct Scsi_Host *shost;
|
||||
struct orc_host *host;
|
||||
|
|
@ -1197,7 +1197,7 @@ out:
|
|||
return error;
|
||||
}
|
||||
|
||||
static void __devexit inia100_remove_one(struct pci_dev *pdev)
|
||||
static void inia100_remove_one(struct pci_dev *pdev)
|
||||
{
|
||||
struct Scsi_Host *shost = pci_get_drvdata(pdev);
|
||||
struct orc_host *host = (struct orc_host *)shost->hostdata;
|
||||
|
|
@ -1224,7 +1224,7 @@ static struct pci_driver inia100_pci_driver = {
|
|||
.name = "inia100",
|
||||
.id_table = inia100_pci_tbl,
|
||||
.probe = inia100_probe_one,
|
||||
.remove = __devexit_p(inia100_remove_one),
|
||||
.remove = inia100_remove_one,
|
||||
};
|
||||
|
||||
static int __init inia100_init(void)
|
||||
|
|
|
|||
|
|
@ -179,8 +179,7 @@ static struct scsi_host_template a2091_scsi_template = {
|
|||
.use_clustering = DISABLE_CLUSTERING
|
||||
};
|
||||
|
||||
static int __devinit a2091_probe(struct zorro_dev *z,
|
||||
const struct zorro_device_id *ent)
|
||||
static int a2091_probe(struct zorro_dev *z, const struct zorro_device_id *ent)
|
||||
{
|
||||
struct Scsi_Host *instance;
|
||||
int error;
|
||||
|
|
@ -239,7 +238,7 @@ fail_alloc:
|
|||
return error;
|
||||
}
|
||||
|
||||
static void __devexit a2091_remove(struct zorro_dev *z)
|
||||
static void a2091_remove(struct zorro_dev *z)
|
||||
{
|
||||
struct Scsi_Host *instance = zorro_get_drvdata(z);
|
||||
struct a2091_hostdata *hdata = shost_priv(instance);
|
||||
|
|
@ -251,7 +250,7 @@ static void __devexit a2091_remove(struct zorro_dev *z)
|
|||
release_mem_region(z->resource.start, 256);
|
||||
}
|
||||
|
||||
static struct zorro_device_id a2091_zorro_tbl[] __devinitdata = {
|
||||
static struct zorro_device_id a2091_zorro_tbl[] = {
|
||||
{ ZORRO_PROD_CBM_A590_A2091_1 },
|
||||
{ ZORRO_PROD_CBM_A590_A2091_2 },
|
||||
{ 0 }
|
||||
|
|
@ -262,7 +261,7 @@ static struct zorro_driver a2091_driver = {
|
|||
.name = "a2091",
|
||||
.id_table = a2091_zorro_tbl,
|
||||
.probe = a2091_probe,
|
||||
.remove = __devexit_p(a2091_remove),
|
||||
.remove = a2091_remove,
|
||||
};
|
||||
|
||||
static int __init a2091_init(void)
|
||||
|
|
|
|||
|
|
@ -88,13 +88,7 @@ char aac_driver_version[] = AAC_DRIVER_FULL_VERSION;
|
|||
*
|
||||
* Note: The last field is used to index into aac_drivers below.
|
||||
*/
|
||||
#ifdef DECLARE_PCI_DEVICE_TABLE
|
||||
static DECLARE_PCI_DEVICE_TABLE(aac_pci_tbl) = {
|
||||
#elif defined(__devinitconst)
|
||||
static const struct pci_device_id aac_pci_tbl[] __devinitconst = {
|
||||
#else
|
||||
static const struct pci_device_id aac_pci_tbl[] __devinitconst = {
|
||||
#endif
|
||||
static const struct pci_device_id aac_pci_tbl[] = {
|
||||
{ 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */
|
||||
{ 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */
|
||||
{ 0x1028, 0x0003, 0x1028, 0x0003, 0, 0, 2 }, /* PERC 3/Si (SlimFast/PERC3Si */
|
||||
|
|
@ -1107,8 +1101,7 @@ static void __aac_shutdown(struct aac_dev * aac)
|
|||
pci_disable_msi(aac->pdev);
|
||||
}
|
||||
|
||||
static int __devinit aac_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||
{
|
||||
unsigned index = id->driver_data;
|
||||
struct Scsi_Host *shost;
|
||||
|
|
@ -1310,7 +1303,7 @@ static void aac_shutdown(struct pci_dev *dev)
|
|||
__aac_shutdown((struct aac_dev *)shost->hostdata);
|
||||
}
|
||||
|
||||
static void __devexit aac_remove_one(struct pci_dev *pdev)
|
||||
static void aac_remove_one(struct pci_dev *pdev)
|
||||
{
|
||||
struct Scsi_Host *shost = pci_get_drvdata(pdev);
|
||||
struct aac_dev *aac = (struct aac_dev *)shost->hostdata;
|
||||
|
|
@ -1341,7 +1334,7 @@ static struct pci_driver aac_pci_driver = {
|
|||
.name = AAC_DRIVERNAME,
|
||||
.id_table = aac_pci_tbl,
|
||||
.probe = aac_probe_one,
|
||||
.remove = __devexit_p(aac_remove_one),
|
||||
.remove = aac_remove_one,
|
||||
.shutdown = aac_shutdown,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -9526,7 +9526,7 @@ advansys_queuecommand_lck(struct scsi_cmnd *scp, void (*done)(struct scsi_cmnd *
|
|||
|
||||
static DEF_SCSI_QCMD(advansys_queuecommand)
|
||||
|
||||
static ushort __devinit AscGetEisaChipCfg(PortAddr iop_base)
|
||||
static ushort AscGetEisaChipCfg(PortAddr iop_base)
|
||||
{
|
||||
PortAddr eisa_cfg_iop = (PortAddr) ASC_GET_EISA_SLOT(iop_base) |
|
||||
(PortAddr) (ASC_EISA_CFG_IOP_MASK);
|
||||
|
|
@ -9537,8 +9537,8 @@ static ushort __devinit AscGetEisaChipCfg(PortAddr iop_base)
|
|||
* Return the BIOS address of the adapter at the specified
|
||||
* I/O port and with the specified bus type.
|
||||
*/
|
||||
static unsigned short __devinit
|
||||
AscGetChipBiosAddress(PortAddr iop_base, unsigned short bus_type)
|
||||
static unsigned short AscGetChipBiosAddress(PortAddr iop_base,
|
||||
unsigned short bus_type)
|
||||
{
|
||||
unsigned short cfg_lsw;
|
||||
unsigned short bios_addr;
|
||||
|
|
@ -9569,7 +9569,7 @@ AscGetChipBiosAddress(PortAddr iop_base, unsigned short bus_type)
|
|||
return bios_addr;
|
||||
}
|
||||
|
||||
static uchar __devinit AscSetChipScsiID(PortAddr iop_base, uchar new_host_id)
|
||||
static uchar AscSetChipScsiID(PortAddr iop_base, uchar new_host_id)
|
||||
{
|
||||
ushort cfg_lsw;
|
||||
|
||||
|
|
@ -9583,7 +9583,7 @@ static uchar __devinit AscSetChipScsiID(PortAddr iop_base, uchar new_host_id)
|
|||
return (AscGetChipScsiID(iop_base));
|
||||
}
|
||||
|
||||
static unsigned char __devinit AscGetChipScsiCtrl(PortAddr iop_base)
|
||||
static unsigned char AscGetChipScsiCtrl(PortAddr iop_base)
|
||||
{
|
||||
unsigned char sc;
|
||||
|
||||
|
|
@ -9593,8 +9593,8 @@ static unsigned char __devinit AscGetChipScsiCtrl(PortAddr iop_base)
|
|||
return sc;
|
||||
}
|
||||
|
||||
static unsigned char __devinit
|
||||
AscGetChipVersion(PortAddr iop_base, unsigned short bus_type)
|
||||
static unsigned char AscGetChipVersion(PortAddr iop_base,
|
||||
unsigned short bus_type)
|
||||
{
|
||||
if (bus_type & ASC_IS_EISA) {
|
||||
PortAddr eisa_iop;
|
||||
|
|
@ -9608,7 +9608,7 @@ AscGetChipVersion(PortAddr iop_base, unsigned short bus_type)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_ISA
|
||||
static void __devinit AscEnableIsaDma(uchar dma_channel)
|
||||
static void AscEnableIsaDma(uchar dma_channel)
|
||||
{
|
||||
if (dma_channel < 4) {
|
||||
outp(0x000B, (ushort)(0xC0 | dma_channel));
|
||||
|
|
@ -9638,7 +9638,7 @@ static int AscStopQueueExe(PortAddr iop_base)
|
|||
return (0);
|
||||
}
|
||||
|
||||
static ASC_DCNT __devinit AscGetMaxDmaCount(ushort bus_type)
|
||||
static ASC_DCNT AscGetMaxDmaCount(ushort bus_type)
|
||||
{
|
||||
if (bus_type & ASC_IS_ISA)
|
||||
return ASC_MAX_ISA_DMA_COUNT;
|
||||
|
|
@ -9648,7 +9648,7 @@ static ASC_DCNT __devinit AscGetMaxDmaCount(ushort bus_type)
|
|||
}
|
||||
|
||||
#ifdef CONFIG_ISA
|
||||
static ushort __devinit AscGetIsaDmaChannel(PortAddr iop_base)
|
||||
static ushort AscGetIsaDmaChannel(PortAddr iop_base)
|
||||
{
|
||||
ushort channel;
|
||||
|
||||
|
|
@ -9660,7 +9660,7 @@ static ushort __devinit AscGetIsaDmaChannel(PortAddr iop_base)
|
|||
return (channel + 4);
|
||||
}
|
||||
|
||||
static ushort __devinit AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channel)
|
||||
static ushort AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channel)
|
||||
{
|
||||
ushort cfg_lsw;
|
||||
uchar value;
|
||||
|
|
@ -9678,7 +9678,7 @@ static ushort __devinit AscSetIsaDmaChannel(PortAddr iop_base, ushort dma_channe
|
|||
return 0;
|
||||
}
|
||||
|
||||
static uchar __devinit AscGetIsaDmaSpeed(PortAddr iop_base)
|
||||
static uchar AscGetIsaDmaSpeed(PortAddr iop_base)
|
||||
{
|
||||
uchar speed_value;
|
||||
|
||||
|
|
@ -9689,7 +9689,7 @@ static uchar __devinit AscGetIsaDmaSpeed(PortAddr iop_base)
|
|||
return speed_value;
|
||||
}
|
||||
|
||||
static uchar __devinit AscSetIsaDmaSpeed(PortAddr iop_base, uchar speed_value)
|
||||
static uchar AscSetIsaDmaSpeed(PortAddr iop_base, uchar speed_value)
|
||||
{
|
||||
speed_value &= 0x07;
|
||||
AscSetBank(iop_base, 1);
|
||||
|
|
@ -9699,7 +9699,7 @@ static uchar __devinit AscSetIsaDmaSpeed(PortAddr iop_base, uchar speed_value)
|
|||
}
|
||||
#endif /* CONFIG_ISA */
|
||||
|
||||
static ushort __devinit AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc)
|
||||
static ushort AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc)
|
||||
{
|
||||
int i;
|
||||
PortAddr iop_base;
|
||||
|
|
@ -9786,7 +9786,7 @@ static ushort __devinit AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc)
|
|||
return warn_code;
|
||||
}
|
||||
|
||||
static int __devinit AscWriteEEPCmdReg(PortAddr iop_base, uchar cmd_reg)
|
||||
static int AscWriteEEPCmdReg(PortAddr iop_base, uchar cmd_reg)
|
||||
{
|
||||
int retry;
|
||||
|
||||
|
|
@ -9801,12 +9801,12 @@ static int __devinit AscWriteEEPCmdReg(PortAddr iop_base, uchar cmd_reg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void __devinit AscWaitEEPRead(void)
|
||||
static void AscWaitEEPRead(void)
|
||||
{
|
||||
mdelay(1);
|
||||
}
|
||||
|
||||
static ushort __devinit AscReadEEPWord(PortAddr iop_base, uchar addr)
|
||||
static ushort AscReadEEPWord(PortAddr iop_base, uchar addr)
|
||||
{
|
||||
ushort read_wval;
|
||||
uchar cmd_reg;
|
||||
|
|
@ -9821,8 +9821,8 @@ static ushort __devinit AscReadEEPWord(PortAddr iop_base, uchar addr)
|
|||
return read_wval;
|
||||
}
|
||||
|
||||
static ushort __devinit
|
||||
AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type)
|
||||
static ushort AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf,
|
||||
ushort bus_type)
|
||||
{
|
||||
ushort wval;
|
||||
ushort sum;
|
||||
|
|
@ -9868,7 +9868,7 @@ AscGetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type)
|
|||
return sum;
|
||||
}
|
||||
|
||||
static int __devinit AscTestExternalLram(ASC_DVC_VAR *asc_dvc)
|
||||
static int AscTestExternalLram(ASC_DVC_VAR *asc_dvc)
|
||||
{
|
||||
PortAddr iop_base;
|
||||
ushort q_addr;
|
||||
|
|
@ -9890,12 +9890,12 @@ static int __devinit AscTestExternalLram(ASC_DVC_VAR *asc_dvc)
|
|||
return (sta);
|
||||
}
|
||||
|
||||
static void __devinit AscWaitEEPWrite(void)
|
||||
static void AscWaitEEPWrite(void)
|
||||
{
|
||||
mdelay(20);
|
||||
}
|
||||
|
||||
static int __devinit AscWriteEEPDataReg(PortAddr iop_base, ushort data_reg)
|
||||
static int AscWriteEEPDataReg(PortAddr iop_base, ushort data_reg)
|
||||
{
|
||||
ushort read_back;
|
||||
int retry;
|
||||
|
|
@ -9914,8 +9914,7 @@ static int __devinit AscWriteEEPDataReg(PortAddr iop_base, ushort data_reg)
|
|||
}
|
||||
}
|
||||
|
||||
static ushort __devinit
|
||||
AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val)
|
||||
static ushort AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val)
|
||||
{
|
||||
ushort read_wval;
|
||||
|
||||
|
|
@ -9935,8 +9934,8 @@ AscWriteEEPWord(PortAddr iop_base, uchar addr, ushort word_val)
|
|||
return (read_wval);
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type)
|
||||
static int AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf,
|
||||
ushort bus_type)
|
||||
{
|
||||
int n_error;
|
||||
ushort *wbuf;
|
||||
|
|
@ -10031,8 +10030,8 @@ AscSetEEPConfigOnce(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type)
|
|||
return n_error;
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type)
|
||||
static int AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf,
|
||||
ushort bus_type)
|
||||
{
|
||||
int retry;
|
||||
int n_error;
|
||||
|
|
@ -10050,7 +10049,7 @@ AscSetEEPConfig(PortAddr iop_base, ASCEEP_CONFIG *cfg_buf, ushort bus_type)
|
|||
return n_error;
|
||||
}
|
||||
|
||||
static ushort __devinit AscInitFromEEP(ASC_DVC_VAR *asc_dvc)
|
||||
static ushort AscInitFromEEP(ASC_DVC_VAR *asc_dvc)
|
||||
{
|
||||
ASCEEP_CONFIG eep_config_buf;
|
||||
ASCEEP_CONFIG *eep_config;
|
||||
|
|
@ -10215,7 +10214,7 @@ static ushort __devinit AscInitFromEEP(ASC_DVC_VAR *asc_dvc)
|
|||
return (warn_code);
|
||||
}
|
||||
|
||||
static int __devinit AscInitGetConfig(struct Scsi_Host *shost)
|
||||
static int AscInitGetConfig(struct Scsi_Host *shost)
|
||||
{
|
||||
struct asc_board *board = shost_priv(shost);
|
||||
ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var;
|
||||
|
|
@ -10269,7 +10268,7 @@ static int __devinit AscInitGetConfig(struct Scsi_Host *shost)
|
|||
return asc_dvc->err_code;
|
||||
}
|
||||
|
||||
static int __devinit AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost)
|
||||
static int AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *shost)
|
||||
{
|
||||
struct asc_board *board = shost_priv(shost);
|
||||
ASC_DVC_VAR *asc_dvc = &board->dvc_var.asc_dvc_var;
|
||||
|
|
@ -10383,7 +10382,7 @@ static int __devinit AscInitSetConfig(struct pci_dev *pdev, struct Scsi_Host *sh
|
|||
* on big-endian platforms so char fields read as words are actually being
|
||||
* unswapped on big-endian platforms.
|
||||
*/
|
||||
static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config __devinitdata = {
|
||||
static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config = {
|
||||
ADV_EEPROM_BIOS_ENABLE, /* cfg_lsw */
|
||||
0x0000, /* cfg_msw */
|
||||
0xFFFF, /* disc_enable */
|
||||
|
|
@ -10421,7 +10420,7 @@ static ADVEEP_3550_CONFIG Default_3550_EEPROM_Config __devinitdata = {
|
|||
0 /* num_of_err */
|
||||
};
|
||||
|
||||
static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar __devinitdata = {
|
||||
static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar = {
|
||||
0, /* cfg_lsw */
|
||||
0, /* cfg_msw */
|
||||
0, /* -disc_enable */
|
||||
|
|
@ -10459,7 +10458,7 @@ static ADVEEP_3550_CONFIG ADVEEP_3550_Config_Field_IsChar __devinitdata = {
|
|||
0 /* num_of_err */
|
||||
};
|
||||
|
||||
static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config __devinitdata = {
|
||||
static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config = {
|
||||
ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */
|
||||
0x0000, /* 01 cfg_msw */
|
||||
0xFFFF, /* 02 disc_enable */
|
||||
|
|
@ -10524,7 +10523,7 @@ static ADVEEP_38C0800_CONFIG Default_38C0800_EEPROM_Config __devinitdata = {
|
|||
0 /* 63 reserved */
|
||||
};
|
||||
|
||||
static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar __devinitdata = {
|
||||
static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar = {
|
||||
0, /* 00 cfg_lsw */
|
||||
0, /* 01 cfg_msw */
|
||||
0, /* 02 disc_enable */
|
||||
|
|
@ -10589,7 +10588,7 @@ static ADVEEP_38C0800_CONFIG ADVEEP_38C0800_Config_Field_IsChar __devinitdata =
|
|||
0 /* 63 reserved */
|
||||
};
|
||||
|
||||
static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config __devinitdata = {
|
||||
static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config = {
|
||||
ADV_EEPROM_BIOS_ENABLE, /* 00 cfg_lsw */
|
||||
0x0000, /* 01 cfg_msw */
|
||||
0xFFFF, /* 02 disc_enable */
|
||||
|
|
@ -10654,7 +10653,7 @@ static ADVEEP_38C1600_CONFIG Default_38C1600_EEPROM_Config __devinitdata = {
|
|||
0 /* 63 reserved */
|
||||
};
|
||||
|
||||
static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar __devinitdata = {
|
||||
static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar = {
|
||||
0, /* 00 cfg_lsw */
|
||||
0, /* 01 cfg_msw */
|
||||
0, /* 02 disc_enable */
|
||||
|
|
@ -10723,7 +10722,7 @@ static ADVEEP_38C1600_CONFIG ADVEEP_38C1600_Config_Field_IsChar __devinitdata =
|
|||
/*
|
||||
* Wait for EEPROM command to complete
|
||||
*/
|
||||
static void __devinit AdvWaitEEPCmd(AdvPortAddr iop_base)
|
||||
static void AdvWaitEEPCmd(AdvPortAddr iop_base)
|
||||
{
|
||||
int eep_delay_ms;
|
||||
|
||||
|
|
@ -10742,7 +10741,7 @@ static void __devinit AdvWaitEEPCmd(AdvPortAddr iop_base)
|
|||
/*
|
||||
* Read the EEPROM from specified location
|
||||
*/
|
||||
static ushort __devinit AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr)
|
||||
static ushort AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr)
|
||||
{
|
||||
AdvWriteWordRegister(iop_base, IOPW_EE_CMD,
|
||||
ASC_EEP_CMD_READ | eep_word_addr);
|
||||
|
|
@ -10753,8 +10752,8 @@ static ushort __devinit AdvReadEEPWord(AdvPortAddr iop_base, int eep_word_addr)
|
|||
/*
|
||||
* Write the EEPROM from 'cfg_buf'.
|
||||
*/
|
||||
static void __devinit
|
||||
AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf)
|
||||
static void AdvSet3550EEPConfig(AdvPortAddr iop_base,
|
||||
ADVEEP_3550_CONFIG *cfg_buf)
|
||||
{
|
||||
ushort *wbuf;
|
||||
ushort addr, chksum;
|
||||
|
|
@ -10820,8 +10819,8 @@ AdvSet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf)
|
|||
/*
|
||||
* Write the EEPROM from 'cfg_buf'.
|
||||
*/
|
||||
static void __devinit
|
||||
AdvSet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf)
|
||||
static void AdvSet38C0800EEPConfig(AdvPortAddr iop_base,
|
||||
ADVEEP_38C0800_CONFIG *cfg_buf)
|
||||
{
|
||||
ushort *wbuf;
|
||||
ushort *charfields;
|
||||
|
|
@ -10887,8 +10886,8 @@ AdvSet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf)
|
|||
/*
|
||||
* Write the EEPROM from 'cfg_buf'.
|
||||
*/
|
||||
static void __devinit
|
||||
AdvSet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf)
|
||||
static void AdvSet38C1600EEPConfig(AdvPortAddr iop_base,
|
||||
ADVEEP_38C1600_CONFIG *cfg_buf)
|
||||
{
|
||||
ushort *wbuf;
|
||||
ushort *charfields;
|
||||
|
|
@ -10956,8 +10955,8 @@ AdvSet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf)
|
|||
*
|
||||
* Return a checksum based on the EEPROM configuration read.
|
||||
*/
|
||||
static ushort __devinit
|
||||
AdvGet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf)
|
||||
static ushort AdvGet3550EEPConfig(AdvPortAddr iop_base,
|
||||
ADVEEP_3550_CONFIG *cfg_buf)
|
||||
{
|
||||
ushort wval, chksum;
|
||||
ushort *wbuf;
|
||||
|
|
@ -10999,8 +10998,8 @@ AdvGet3550EEPConfig(AdvPortAddr iop_base, ADVEEP_3550_CONFIG *cfg_buf)
|
|||
*
|
||||
* Return a checksum based on the EEPROM configuration read.
|
||||
*/
|
||||
static ushort __devinit
|
||||
AdvGet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf)
|
||||
static ushort AdvGet38C0800EEPConfig(AdvPortAddr iop_base,
|
||||
ADVEEP_38C0800_CONFIG *cfg_buf)
|
||||
{
|
||||
ushort wval, chksum;
|
||||
ushort *wbuf;
|
||||
|
|
@ -11042,8 +11041,8 @@ AdvGet38C0800EEPConfig(AdvPortAddr iop_base, ADVEEP_38C0800_CONFIG *cfg_buf)
|
|||
*
|
||||
* Return a checksum based on the EEPROM configuration read.
|
||||
*/
|
||||
static ushort __devinit
|
||||
AdvGet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf)
|
||||
static ushort AdvGet38C1600EEPConfig(AdvPortAddr iop_base,
|
||||
ADVEEP_38C1600_CONFIG *cfg_buf)
|
||||
{
|
||||
ushort wval, chksum;
|
||||
ushort *wbuf;
|
||||
|
|
@ -11092,7 +11091,7 @@ AdvGet38C1600EEPConfig(AdvPortAddr iop_base, ADVEEP_38C1600_CONFIG *cfg_buf)
|
|||
*
|
||||
* Note: Chip is stopped on entry.
|
||||
*/
|
||||
static int __devinit AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc)
|
||||
static int AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc)
|
||||
{
|
||||
AdvPortAddr iop_base;
|
||||
ushort warn_code;
|
||||
|
|
@ -11242,7 +11241,7 @@ static int __devinit AdvInitFrom3550EEP(ADV_DVC_VAR *asc_dvc)
|
|||
*
|
||||
* Note: Chip is stopped on entry.
|
||||
*/
|
||||
static int __devinit AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc)
|
||||
static int AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc)
|
||||
{
|
||||
AdvPortAddr iop_base;
|
||||
ushort warn_code;
|
||||
|
|
@ -11441,7 +11440,7 @@ static int __devinit AdvInitFrom38C0800EEP(ADV_DVC_VAR *asc_dvc)
|
|||
*
|
||||
* Note: Chip is stopped on entry.
|
||||
*/
|
||||
static int __devinit AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc)
|
||||
static int AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc)
|
||||
{
|
||||
AdvPortAddr iop_base;
|
||||
ushort warn_code;
|
||||
|
|
@ -11661,8 +11660,7 @@ static int __devinit AdvInitFrom38C1600EEP(ADV_DVC_VAR *asc_dvc)
|
|||
* For a non-fatal error return a warning code. If there are no warnings
|
||||
* then 0 is returned.
|
||||
*/
|
||||
static int __devinit
|
||||
AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost)
|
||||
static int AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost)
|
||||
{
|
||||
struct asc_board *board = shost_priv(shost);
|
||||
ADV_DVC_VAR *asc_dvc = &board->dvc_var.adv_dvc_var;
|
||||
|
|
@ -11769,7 +11767,7 @@ static struct scsi_host_template advansys_template = {
|
|||
.use_clustering = ENABLE_CLUSTERING,
|
||||
};
|
||||
|
||||
static int __devinit advansys_wide_init_chip(struct Scsi_Host *shost)
|
||||
static int advansys_wide_init_chip(struct Scsi_Host *shost)
|
||||
{
|
||||
struct asc_board *board = shost_priv(shost);
|
||||
struct adv_dvc_var *adv_dvc = &board->dvc_var.adv_dvc_var;
|
||||
|
|
@ -11882,8 +11880,8 @@ static void advansys_wide_free_mem(struct asc_board *board)
|
|||
}
|
||||
}
|
||||
|
||||
static int __devinit advansys_board_found(struct Scsi_Host *shost,
|
||||
unsigned int iop, int bus_type)
|
||||
static int advansys_board_found(struct Scsi_Host *shost, unsigned int iop,
|
||||
int bus_type)
|
||||
{
|
||||
struct pci_dev *pdev;
|
||||
struct asc_board *boardp = shost_priv(shost);
|
||||
|
|
@ -12428,7 +12426,7 @@ static PortAddr _asc_def_iop_base[ASC_IOADR_TABLE_MAX_IX] = {
|
|||
* 10: 12
|
||||
* 11: 15
|
||||
*/
|
||||
static unsigned int __devinit advansys_isa_irq_no(PortAddr iop_base)
|
||||
static unsigned int advansys_isa_irq_no(PortAddr iop_base)
|
||||
{
|
||||
unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base);
|
||||
unsigned int chip_irq = ((cfg_lsw >> 2) & 0x03) + 10;
|
||||
|
|
@ -12437,7 +12435,7 @@ static unsigned int __devinit advansys_isa_irq_no(PortAddr iop_base)
|
|||
return chip_irq;
|
||||
}
|
||||
|
||||
static int __devinit advansys_isa_probe(struct device *dev, unsigned int id)
|
||||
static int advansys_isa_probe(struct device *dev, unsigned int id)
|
||||
{
|
||||
int err = -ENODEV;
|
||||
PortAddr iop_base = _asc_def_iop_base[id];
|
||||
|
|
@ -12477,7 +12475,7 @@ static int __devinit advansys_isa_probe(struct device *dev, unsigned int id)
|
|||
return err;
|
||||
}
|
||||
|
||||
static int __devexit advansys_isa_remove(struct device *dev, unsigned int id)
|
||||
static int advansys_isa_remove(struct device *dev, unsigned int id)
|
||||
{
|
||||
int ioport = _asc_def_iop_base[id];
|
||||
advansys_release(dev_get_drvdata(dev));
|
||||
|
|
@ -12487,7 +12485,7 @@ static int __devexit advansys_isa_remove(struct device *dev, unsigned int id)
|
|||
|
||||
static struct isa_driver advansys_isa_driver = {
|
||||
.probe = advansys_isa_probe,
|
||||
.remove = __devexit_p(advansys_isa_remove),
|
||||
.remove = advansys_isa_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = DRV_NAME,
|
||||
|
|
@ -12505,7 +12503,7 @@ static struct isa_driver advansys_isa_driver = {
|
|||
* 110: 15
|
||||
* 111: invalid
|
||||
*/
|
||||
static unsigned int __devinit advansys_vlb_irq_no(PortAddr iop_base)
|
||||
static unsigned int advansys_vlb_irq_no(PortAddr iop_base)
|
||||
{
|
||||
unsigned short cfg_lsw = AscGetChipCfgLsw(iop_base);
|
||||
unsigned int chip_irq = ((cfg_lsw >> 2) & 0x07) + 9;
|
||||
|
|
@ -12514,7 +12512,7 @@ static unsigned int __devinit advansys_vlb_irq_no(PortAddr iop_base)
|
|||
return chip_irq;
|
||||
}
|
||||
|
||||
static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id)
|
||||
static int advansys_vlb_probe(struct device *dev, unsigned int id)
|
||||
{
|
||||
int err = -ENODEV;
|
||||
PortAddr iop_base = _asc_def_iop_base[id];
|
||||
|
|
@ -12561,14 +12559,14 @@ static int __devinit advansys_vlb_probe(struct device *dev, unsigned int id)
|
|||
|
||||
static struct isa_driver advansys_vlb_driver = {
|
||||
.probe = advansys_vlb_probe,
|
||||
.remove = __devexit_p(advansys_isa_remove),
|
||||
.remove = advansys_isa_remove,
|
||||
.driver = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "advansys_vlb",
|
||||
},
|
||||
};
|
||||
|
||||
static struct eisa_device_id advansys_eisa_table[] __devinitdata = {
|
||||
static struct eisa_device_id advansys_eisa_table[] = {
|
||||
{ "ABP7401" },
|
||||
{ "ABP7501" },
|
||||
{ "" }
|
||||
|
|
@ -12595,7 +12593,7 @@ struct eisa_scsi_data {
|
|||
* 110: invalid
|
||||
* 111: invalid
|
||||
*/
|
||||
static unsigned int __devinit advansys_eisa_irq_no(struct eisa_device *edev)
|
||||
static unsigned int advansys_eisa_irq_no(struct eisa_device *edev)
|
||||
{
|
||||
unsigned short cfg_lsw = inw(edev->base_addr + 0xc86);
|
||||
unsigned int chip_irq = ((cfg_lsw >> 8) & 0x07) + 10;
|
||||
|
|
@ -12604,7 +12602,7 @@ static unsigned int __devinit advansys_eisa_irq_no(struct eisa_device *edev)
|
|||
return chip_irq;
|
||||
}
|
||||
|
||||
static int __devinit advansys_eisa_probe(struct device *dev)
|
||||
static int advansys_eisa_probe(struct device *dev)
|
||||
{
|
||||
int i, ioport, irq = 0;
|
||||
int err;
|
||||
|
|
@ -12677,7 +12675,7 @@ static int __devinit advansys_eisa_probe(struct device *dev)
|
|||
return err;
|
||||
}
|
||||
|
||||
static __devexit int advansys_eisa_remove(struct device *dev)
|
||||
static int advansys_eisa_remove(struct device *dev)
|
||||
{
|
||||
int i;
|
||||
struct eisa_scsi_data *data = dev_get_drvdata(dev);
|
||||
|
|
@ -12701,12 +12699,12 @@ static struct eisa_driver advansys_eisa_driver = {
|
|||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.probe = advansys_eisa_probe,
|
||||
.remove = __devexit_p(advansys_eisa_remove),
|
||||
.remove = advansys_eisa_remove,
|
||||
}
|
||||
};
|
||||
|
||||
/* PCI Devices supported by this driver */
|
||||
static struct pci_device_id advansys_pci_tbl[] __devinitdata = {
|
||||
static struct pci_device_id advansys_pci_tbl[] = {
|
||||
{PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_1200A,
|
||||
PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
|
||||
{PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_ABP940,
|
||||
|
|
@ -12724,7 +12722,7 @@ static struct pci_device_id advansys_pci_tbl[] __devinitdata = {
|
|||
|
||||
MODULE_DEVICE_TABLE(pci, advansys_pci_tbl);
|
||||
|
||||
static void __devinit advansys_set_latency(struct pci_dev *pdev)
|
||||
static void advansys_set_latency(struct pci_dev *pdev)
|
||||
{
|
||||
if ((pdev->device == PCI_DEVICE_ID_ASP_1200A) ||
|
||||
(pdev->device == PCI_DEVICE_ID_ASP_ABP940)) {
|
||||
|
|
@ -12737,8 +12735,8 @@ static void __devinit advansys_set_latency(struct pci_dev *pdev)
|
|||
}
|
||||
}
|
||||
|
||||
static int __devinit
|
||||
advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
static int advansys_pci_probe(struct pci_dev *pdev,
|
||||
const struct pci_device_id *ent)
|
||||
{
|
||||
int err, ioport;
|
||||
struct Scsi_Host *shost;
|
||||
|
|
@ -12791,7 +12789,7 @@ advansys_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
return err;
|
||||
}
|
||||
|
||||
static void __devexit advansys_pci_remove(struct pci_dev *pdev)
|
||||
static void advansys_pci_remove(struct pci_dev *pdev)
|
||||
{
|
||||
advansys_release(pci_get_drvdata(pdev));
|
||||
pci_release_regions(pdev);
|
||||
|
|
@ -12802,7 +12800,7 @@ static struct pci_driver advansys_pci_driver = {
|
|||
.name = DRV_NAME,
|
||||
.id_table = advansys_pci_tbl,
|
||||
.probe = advansys_pci_probe,
|
||||
.remove = __devexit_p(advansys_pci_remove),
|
||||
.remove = advansys_pci_remove,
|
||||
};
|
||||
|
||||
static int __init advansys_init(void)
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ MODULE_PARM_DESC(aha152x1, "parameters for second controller");
|
|||
#endif /* MODULE */
|
||||
|
||||
#ifdef __ISAPNP__
|
||||
static struct isapnp_device_id id_table[] __devinitdata = {
|
||||
static struct isapnp_device_id id_table[] = {
|
||||
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1502), 0 },
|
||||
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1505), 0 },
|
||||
{ ISAPNP_ANY_ID, ISAPNP_ANY_ID, ISAPNP_VENDOR('A', 'D', 'P'), ISAPNP_FUNCTION(0x1510), 0 },
|
||||
|
|
|
|||
|
|
@ -646,7 +646,7 @@ static int aha1740_probe (struct device *dev)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
static __devexit int aha1740_remove (struct device *dev)
|
||||
static int aha1740_remove (struct device *dev)
|
||||
{
|
||||
struct Scsi_Host *shpnt = dev_get_drvdata(dev);
|
||||
struct aha1740_hostdata *host = HOSTDATA (shpnt);
|
||||
|
|
@ -677,7 +677,7 @@ static struct eisa_driver aha1740_driver = {
|
|||
.driver = {
|
||||
.name = "aha1740",
|
||||
.probe = aha1740_probe,
|
||||
.remove = __devexit_p (aha1740_remove),
|
||||
.remove = aha1740_remove,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ static struct scsi_host_template aic94xx_sht = {
|
|||
.ioctl = sas_ioctl,
|
||||
};
|
||||
|
||||
static int __devinit asd_map_memio(struct asd_ha_struct *asd_ha)
|
||||
static int asd_map_memio(struct asd_ha_struct *asd_ha)
|
||||
{
|
||||
int err, i;
|
||||
struct asd_ha_addrspace *io_handle;
|
||||
|
|
@ -146,7 +146,7 @@ static void asd_unmap_memio(struct asd_ha_struct *asd_ha)
|
|||
pci_release_region(asd_ha->pcidev, 0);
|
||||
}
|
||||
|
||||
static int __devinit asd_map_ioport(struct asd_ha_struct *asd_ha)
|
||||
static int asd_map_ioport(struct asd_ha_struct *asd_ha)
|
||||
{
|
||||
int i = PCI_IOBAR_OFFSET, err;
|
||||
struct asd_ha_addrspace *io_handle = &asd_ha->io_handle[0];
|
||||
|
|
@ -175,7 +175,7 @@ static void asd_unmap_ioport(struct asd_ha_struct *asd_ha)
|
|||
pci_release_region(asd_ha->pcidev, PCI_IOBAR_OFFSET);
|
||||
}
|
||||
|
||||
static int __devinit asd_map_ha(struct asd_ha_struct *asd_ha)
|
||||
static int asd_map_ha(struct asd_ha_struct *asd_ha)
|
||||
{
|
||||
int err;
|
||||
u16 cmd_reg;
|
||||
|
|
@ -221,7 +221,7 @@ static const char *asd_dev_rev[30] = {
|
|||
[8] = "B0",
|
||||
};
|
||||
|
||||
static int __devinit asd_common_setup(struct asd_ha_struct *asd_ha)
|
||||
static int asd_common_setup(struct asd_ha_struct *asd_ha)
|
||||
{
|
||||
int err, i;
|
||||
|
||||
|
|
@ -257,7 +257,7 @@ Err:
|
|||
return err;
|
||||
}
|
||||
|
||||
static int __devinit asd_aic9410_setup(struct asd_ha_struct *asd_ha)
|
||||
static int asd_aic9410_setup(struct asd_ha_struct *asd_ha)
|
||||
{
|
||||
int err = asd_common_setup(asd_ha);
|
||||
|
||||
|
|
@ -272,7 +272,7 @@ static int __devinit asd_aic9410_setup(struct asd_ha_struct *asd_ha)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int __devinit asd_aic9405_setup(struct asd_ha_struct *asd_ha)
|
||||
static int asd_aic9405_setup(struct asd_ha_struct *asd_ha)
|
||||
{
|
||||
int err = asd_common_setup(asd_ha);
|
||||
|
||||
|
|
@ -531,7 +531,7 @@ static void asd_remove_dev_attrs(struct asd_ha_struct *asd_ha)
|
|||
static const struct asd_pcidev_struct {
|
||||
const char * name;
|
||||
int (*setup)(struct asd_ha_struct *asd_ha);
|
||||
} asd_pcidev_data[] __devinitconst = {
|
||||
} asd_pcidev_data[] = {
|
||||
/* Id 0 is used for dynamic ids. */
|
||||
{ .name = "Adaptec AIC-94xx SAS/SATA Host Adapter",
|
||||
.setup = asd_aic9410_setup
|
||||
|
|
@ -731,8 +731,7 @@ static int asd_unregister_sas_ha(struct asd_ha_struct *asd_ha)
|
|||
return err;
|
||||
}
|
||||
|
||||
static int __devinit asd_pci_probe(struct pci_dev *dev,
|
||||
const struct pci_device_id *id)
|
||||
static int asd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
|
||||
{
|
||||
const struct asd_pcidev_struct *asd_dev;
|
||||
unsigned asd_id = (unsigned) id->driver_data;
|
||||
|
|
@ -924,7 +923,7 @@ static void asd_turn_off_leds(struct asd_ha_struct *asd_ha)
|
|||
}
|
||||
}
|
||||
|
||||
static void __devexit asd_pci_remove(struct pci_dev *dev)
|
||||
static void asd_pci_remove(struct pci_dev *dev)
|
||||
{
|
||||
struct asd_ha_struct *asd_ha = pci_get_drvdata(dev);
|
||||
|
||||
|
|
@ -1012,7 +1011,7 @@ static struct sas_domain_function_template aic94xx_transport_functions = {
|
|||
.lldd_ata_set_dmamode = asd_set_dmamode,
|
||||
};
|
||||
|
||||
static const struct pci_device_id aic94xx_pci_table[] __devinitconst = {
|
||||
static const struct pci_device_id aic94xx_pci_table[] = {
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x410),0, 0, 1},
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x412),0, 0, 1},
|
||||
{PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x416),0, 0, 1},
|
||||
|
|
@ -1031,7 +1030,7 @@ static struct pci_driver aic94xx_pci_driver = {
|
|||
.name = ASD_DRIVER_NAME,
|
||||
.id_table = aic94xx_pci_table,
|
||||
.probe = asd_pci_probe,
|
||||
.remove = __devexit_p(asd_pci_remove),
|
||||
.remove = asd_pci_remove,
|
||||
};
|
||||
|
||||
static int __init aic94xx_init(void)
|
||||
|
|
|
|||
|
|
@ -2965,8 +2965,7 @@ static struct scsi_host_template acornscsi_template = {
|
|||
.proc_name = "acornscsi",
|
||||
};
|
||||
|
||||
static int __devinit
|
||||
acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
static int acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
{
|
||||
struct Scsi_Host *host;
|
||||
AS_Host *ashost;
|
||||
|
|
@ -3032,7 +3031,7 @@ acornscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void __devexit acornscsi_remove(struct expansion_card *ec)
|
||||
static void acornscsi_remove(struct expansion_card *ec)
|
||||
{
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
AS_Host *ashost = (AS_Host *)host->hostdata;
|
||||
|
|
@ -3063,7 +3062,7 @@ static const struct ecard_id acornscsi_cids[] = {
|
|||
|
||||
static struct ecard_driver acornscsi_driver = {
|
||||
.probe = acornscsi_probe,
|
||||
.remove = __devexit_p(acornscsi_remove),
|
||||
.remove = acornscsi_remove,
|
||||
.id_table = acornscsi_cids,
|
||||
.drv = {
|
||||
.name = "acornscsi",
|
||||
|
|
|
|||
|
|
@ -276,8 +276,7 @@ static struct scsi_host_template arxescsi_template = {
|
|||
.proc_name = "arxescsi",
|
||||
};
|
||||
|
||||
static int __devinit
|
||||
arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
static int arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
{
|
||||
struct Scsi_Host *host;
|
||||
struct arxescsi_info *info;
|
||||
|
|
@ -340,7 +339,7 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void __devexit arxescsi_remove(struct expansion_card *ec)
|
||||
static void arxescsi_remove(struct expansion_card *ec)
|
||||
{
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
|
||||
|
|
@ -359,7 +358,7 @@ static const struct ecard_id arxescsi_cids[] = {
|
|||
|
||||
static struct ecard_driver arxescsi_driver = {
|
||||
.probe = arxescsi_probe,
|
||||
.remove = __devexit_p(arxescsi_remove),
|
||||
.remove = arxescsi_remove,
|
||||
.id_table = arxescsi_cids,
|
||||
.drv = {
|
||||
.name = "arxescsi",
|
||||
|
|
|
|||
|
|
@ -225,8 +225,8 @@ static struct scsi_host_template cumanascsi_template = {
|
|||
.proc_name = "CumanaSCSI-1",
|
||||
};
|
||||
|
||||
static int __devinit
|
||||
cumanascsi1_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
static int cumanascsi1_probe(struct expansion_card *ec,
|
||||
const struct ecard_id *id)
|
||||
{
|
||||
struct Scsi_Host *host;
|
||||
int ret;
|
||||
|
|
@ -298,7 +298,7 @@ cumanascsi1_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void __devexit cumanascsi1_remove(struct expansion_card *ec)
|
||||
static void cumanascsi1_remove(struct expansion_card *ec)
|
||||
{
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
|
||||
|
|
@ -320,7 +320,7 @@ static const struct ecard_id cumanascsi1_cids[] = {
|
|||
|
||||
static struct ecard_driver cumanascsi1_driver = {
|
||||
.probe = cumanascsi1_probe,
|
||||
.remove = __devexit_p(cumanascsi1_remove),
|
||||
.remove = cumanascsi1_remove,
|
||||
.id_table = cumanascsi1_cids,
|
||||
.drv = {
|
||||
.name = "cumanascsi1",
|
||||
|
|
|
|||
|
|
@ -397,8 +397,8 @@ static struct scsi_host_template cumanascsi2_template = {
|
|||
.proc_name = "cumanascsi2",
|
||||
};
|
||||
|
||||
static int __devinit
|
||||
cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
static int cumanascsi2_probe(struct expansion_card *ec,
|
||||
const struct ecard_id *id)
|
||||
{
|
||||
struct Scsi_Host *host;
|
||||
struct cumanascsi2_info *info;
|
||||
|
|
@ -495,7 +495,7 @@ cumanascsi2_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void __devexit cumanascsi2_remove(struct expansion_card *ec)
|
||||
static void cumanascsi2_remove(struct expansion_card *ec)
|
||||
{
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata;
|
||||
|
|
@ -519,7 +519,7 @@ static const struct ecard_id cumanascsi2_cids[] = {
|
|||
|
||||
static struct ecard_driver cumanascsi2_driver = {
|
||||
.probe = cumanascsi2_probe,
|
||||
.remove = __devexit_p(cumanascsi2_remove),
|
||||
.remove = cumanascsi2_remove,
|
||||
.id_table = cumanascsi2_cids,
|
||||
.drv = {
|
||||
.name = "cumanascsi2",
|
||||
|
|
|
|||
|
|
@ -515,8 +515,7 @@ static struct scsi_host_template eesox_template = {
|
|||
.proc_name = "eesox",
|
||||
};
|
||||
|
||||
static int __devinit
|
||||
eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
{
|
||||
struct Scsi_Host *host;
|
||||
struct eesoxscsi_info *info;
|
||||
|
|
@ -617,7 +616,7 @@ eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void __devexit eesoxscsi_remove(struct expansion_card *ec)
|
||||
static void eesoxscsi_remove(struct expansion_card *ec)
|
||||
{
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
struct eesoxscsi_info *info = (struct eesoxscsi_info *)host->hostdata;
|
||||
|
|
@ -643,7 +642,7 @@ static const struct ecard_id eesoxscsi_cids[] = {
|
|||
|
||||
static struct ecard_driver eesoxscsi_driver = {
|
||||
.probe = eesoxscsi_probe,
|
||||
.remove = __devexit_p(eesoxscsi_remove),
|
||||
.remove = eesoxscsi_remove,
|
||||
.id_table = eesoxscsi_cids,
|
||||
.drv = {
|
||||
.name = "eesoxscsi",
|
||||
|
|
|
|||
|
|
@ -129,8 +129,7 @@ static struct scsi_host_template oakscsi_template = {
|
|||
.proc_name = "oakscsi",
|
||||
};
|
||||
|
||||
static int __devinit
|
||||
oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
static int oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
||||
{
|
||||
struct Scsi_Host *host;
|
||||
int ret = -ENOMEM;
|
||||
|
|
@ -182,7 +181,7 @@ oakscsi_probe(struct expansion_card *ec, const struct ecard_id *id)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static void __devexit oakscsi_remove(struct expansion_card *ec)
|
||||
static void oakscsi_remove(struct expansion_card *ec)
|
||||
{
|
||||
struct Scsi_Host *host = ecard_get_drvdata(ec);
|
||||
|
||||
|
|
@ -202,7 +201,7 @@ static const struct ecard_id oakscsi_cids[] = {
|
|||
|
||||
static struct ecard_driver oakscsi_driver = {
|
||||
.probe = oakscsi_probe,
|
||||
.remove = __devexit_p(oakscsi_remove),
|
||||
.remove = oakscsi_remove,
|
||||
.id_table = oakscsi_cids,
|
||||
.drv = {
|
||||
.name = "oakscsi",
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue