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>
This commit is contained in:

committed by
Nicholas Bellinger

parent
3868e4365f
commit
e4aae5af81
@@ -1883,8 +1883,8 @@ scsiback_make_tpg(struct se_wwn *wwn,
|
||||
tpg->tport = tport;
|
||||
tpg->tport_tpgt = tpgt;
|
||||
|
||||
ret = core_tpg_register(&scsiback_ops, wwn,
|
||||
&tpg->se_tpg, tpg, TRANSPORT_TPG_TYPE_NORMAL);
|
||||
ret = core_tpg_register(&scsiback_ops, wwn, &tpg->se_tpg,
|
||||
tport->tport_proto_id);
|
||||
if (ret < 0) {
|
||||
kfree(tpg);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user