summaryrefslogtreecommitdiffstats
path: root/drivers/vhost
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-05-01 17:47:56 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2015-05-30 22:42:27 -0700
commite4aae5af810eaa61c2cd7ba79d95ebfe0d88fe9b (patch)
tree7149b3110c42ab0a549502286dd4efe693d09940 /drivers/vhost
parent3868e4365f1735698df373733c9d99d7b9a688e8 (diff)
downloadop-kernel-dev-e4aae5af810eaa61c2cd7ba79d95ebfe0d88fe9b.zip
op-kernel-dev-e4aae5af810eaa61c2cd7ba79d95ebfe0d88fe9b.tar.gz
target: change core_tpg_register prototype
Remove the unneeded fabric_ptr argument, and change the type argument to pass in a SPC protocol identifier. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index b93c039..8295e7b 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -2119,8 +2119,8 @@ vhost_scsi_make_tpg(struct se_wwn *wwn,
tpg->tport = tport;
tpg->tport_tpgt = tpgt;
- ret = core_tpg_register(&vhost_scsi_ops, wwn,
- &tpg->se_tpg, tpg, TRANSPORT_TPG_TYPE_NORMAL);
+ ret = core_tpg_register(&vhost_scsi_ops, wwn, &tpg->se_tpg,
+ tport->tport_proto_id);
if (ret < 0) {
kfree(tpg);
return NULL;
OpenPOWER on IntegriCloud