Commit 103eb3b5 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Martin K. Petersen

scsi: mvumi: remove fake transport template

These days we can specify an eh_timed_out handler in the host_template,
so don't have a transport_template definition just for it.

[mkp: fixed typo]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 96f6a613
...@@ -2225,15 +2225,12 @@ static struct scsi_host_template mvumi_template = { ...@@ -2225,15 +2225,12 @@ static struct scsi_host_template mvumi_template = {
.name = "Marvell Storage Controller", .name = "Marvell Storage Controller",
.slave_configure = mvumi_slave_configure, .slave_configure = mvumi_slave_configure,
.queuecommand = mvumi_queue_command, .queuecommand = mvumi_queue_command,
.eh_timed_out = mvumi_timed_out,
.eh_host_reset_handler = mvumi_host_reset, .eh_host_reset_handler = mvumi_host_reset,
.bios_param = mvumi_bios_param, .bios_param = mvumi_bios_param,
.this_id = -1, .this_id = -1,
}; };
static struct scsi_transport_template mvumi_transport_template = {
.eh_timed_out = mvumi_timed_out,
};
static int mvumi_cfg_hw_reg(struct mvumi_hba *mhba) static int mvumi_cfg_hw_reg(struct mvumi_hba *mhba)
{ {
void *base = NULL; void *base = NULL;
...@@ -2451,7 +2448,6 @@ static int mvumi_io_attach(struct mvumi_hba *mhba) ...@@ -2451,7 +2448,6 @@ static int mvumi_io_attach(struct mvumi_hba *mhba)
host->cmd_per_lun = (mhba->max_io - 1) ? (mhba->max_io - 1) : 1; host->cmd_per_lun = (mhba->max_io - 1) ? (mhba->max_io - 1) : 1;
host->max_id = mhba->max_target_id; host->max_id = mhba->max_target_id;
host->max_cmd_len = MAX_COMMAND_SIZE; host->max_cmd_len = MAX_COMMAND_SIZE;
host->transportt = &mvumi_transport_template;
ret = scsi_add_host(host, &mhba->pdev->dev); ret = scsi_add_host(host, &mhba->pdev->dev);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment