You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -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:
@@ -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,7 +1082,7 @@ static struct scsi_host_template inia100_template = {
|
||||
.use_clustering = ENABLE_CLUSTERING,
|
||||
};
|
||||
|
||||
static int __devinit inia100_probe_one(struct pci_dev *pdev,
|
||||
static int inia100_probe_one(struct pci_dev *pdev,
|
||||
const struct pci_device_id *id)
|
||||
{
|
||||
struct Scsi_Host *shost;
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
+75
-77
File diff suppressed because it is too large
Load Diff
@@ -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
Reference in New Issue
Block a user