diff options
Diffstat (limited to 'drivers/scsi/3w-sas.c')
| -rw-r--r-- | drivers/scsi/3w-sas.c | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index 6a95d111d20..4de346017e9 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c @@ -757,7 +757,7 @@ static long twl_chrdev_ioctl(struct file *file, unsigned int cmd, unsigned long  	dma_addr_t dma_handle;  	int request_id = 0;  	TW_Ioctl_Driver_Command driver_command; -	struct inode *inode = file->f_dentry->d_inode; +	struct inode *inode = file_inode(file);  	TW_Ioctl_Buf_Apache *tw_ioctl;  	TW_Command_Full *full_command_packet;  	TW_Device_Extension *tw_dev = twl_device_extension_list[iminor(inode)]; @@ -1501,7 +1501,7 @@ out:  } /* End twl_scsi_eh_reset() */  /* This is the main scsi queue function to handle scsi opcodes */ -static int twl_scsi_queue(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *)) +static int twl_scsi_queue_lck(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))  {  	int request_id, retval;  	TW_Device_Extension *tw_dev = (TW_Device_Extension *)SCpnt->device->host->hostdata; @@ -1536,6 +1536,8 @@ out:  	return retval;  } /* End twl_scsi_queue() */ +static DEF_SCSI_QCMD(twl_scsi_queue) +  /* This function tells the controller to shut down */  static void __twl_shutdown(TW_Device_Extension *tw_dev)  { @@ -1598,11 +1600,12 @@ static struct scsi_host_template driver_template = {  	.cmd_per_lun		= TW_MAX_CMDS_PER_LUN,  	.use_clustering		= ENABLE_CLUSTERING,  	.shost_attrs		= twl_host_attrs, -	.emulated		= 1 +	.emulated		= 1, +	.no_write_same		= 1,  };  /* 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; @@ -1891,7 +1894,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) },  	{ }  };  | 
