diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-30 13:18:56 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-02-06 19:08:17 -0500 |
commit | 103eb3b5d0f2cc2771b3c49181dd22f73735aaf2 (patch) | |
tree | 3c29dddab9e321ecb68edd08a10c336ea405514c /drivers | |
parent | 96f6a6134766de0d42a98c7758736dde16e0add5 (diff) | |
download | linux-103eb3b5d0f2cc2771b3c49181dd22f73735aaf2.tar.gz linux-103eb3b5d0f2cc2771b3c49181dd22f73735aaf2.tar.bz2 linux-103eb3b5d0f2cc2771b3c49181dd22f73735aaf2.zip |
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: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/mvumi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index 39285070f3b5..247df5e79b71 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -2225,15 +2225,12 @@ static struct scsi_host_template mvumi_template = { .name = "Marvell Storage Controller", .slave_configure = mvumi_slave_configure, .queuecommand = mvumi_queue_command, + .eh_timed_out = mvumi_timed_out, .eh_host_reset_handler = mvumi_host_reset, .bios_param = mvumi_bios_param, .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) { void *base = NULL; @@ -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->max_id = mhba->max_target_id; host->max_cmd_len = MAX_COMMAND_SIZE; - host->transportt = &mvumi_transport_template; ret = scsi_add_host(host, &mhba->pdev->dev); if (ret) { |