diff options
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_init.c')
| -rw-r--r-- | drivers/scsi/aic94xx/aic94xx_init.c | 31 | 
1 files changed, 15 insertions, 16 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c index 3b7e83d2dab..c56741fc4b9 100644 --- a/drivers/scsi/aic94xx/aic94xx_init.c +++ b/drivers/scsi/aic94xx/aic94xx_init.c @@ -68,7 +68,6 @@ static struct scsi_host_template aic94xx_sht = {  	.queuecommand		= sas_queuecommand,  	.target_alloc		= sas_target_alloc,  	.slave_configure	= sas_slave_configure, -	.slave_destroy		= sas_slave_destroy,  	.scan_finished		= asd_scan_finished,  	.scan_start		= asd_scan_start,  	.change_queue_depth	= sas_change_queue_depth, @@ -82,12 +81,11 @@ static struct scsi_host_template aic94xx_sht = {  	.use_clustering		= ENABLE_CLUSTERING,  	.eh_device_reset_handler	= sas_eh_device_reset_handler,  	.eh_bus_reset_handler	= sas_eh_bus_reset_handler, -	.slave_alloc		= sas_slave_alloc,  	.target_destroy		= sas_target_destroy,  	.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; @@ -148,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]; @@ -177,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; @@ -223,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; @@ -259,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); @@ -274,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); @@ -486,7 +484,7 @@ static ssize_t asd_show_update_bios(struct device *dev,  			flash_error_table[i].reason);  } -static DEVICE_ATTR(update_bios, S_IRUGO|S_IWUGO, +static DEVICE_ATTR(update_bios, S_IRUGO|S_IWUSR,  	asd_show_update_bios, asd_store_update_bios);  static int asd_create_dev_attrs(struct asd_ha_struct *asd_ha) @@ -533,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 @@ -733,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; @@ -926,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); @@ -972,7 +969,7 @@ static int asd_scan_finished(struct Scsi_Host *shost, unsigned long time)  	if (time < HZ)  		return 0;  	/* Wait for discovery to finish */ -	scsi_flush_work(shost); +	sas_drain_work(SHOST_TO_SAS_HA(shost));  	return 1;  } @@ -1010,9 +1007,11 @@ static struct sas_domain_function_template aic94xx_transport_functions = {  	.lldd_clear_nexus_ha	= asd_clear_nexus_ha,  	.lldd_control_phy	= asd_control_phy, + +	.lldd_ata_set_dmamode	= asd_set_dmamode,  }; -static const struct pci_device_id aic94xx_pci_table[] __devinitdata = { +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)  | 
