diff options
Diffstat (limited to 'drivers/scsi/scsi_transport_srp.c')
-rw-r--r-- | drivers/scsi/scsi_transport_srp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/scsi_transport_srp.c b/drivers/scsi/scsi_transport_srp.c index cdd001a6639c..430501ef9f02 100644 --- a/drivers/scsi/scsi_transport_srp.c +++ b/drivers/scsi/scsi_transport_srp.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <scsi/scsi_host.h> | 30 | #include <scsi/scsi_host.h> |
31 | #include <scsi/scsi_transport.h> | 31 | #include <scsi/scsi_transport.h> |
32 | #include <scsi/scsi_transport_srp.h> | 32 | #include <scsi/scsi_transport_srp.h> |
33 | #include <scsi/scsi_tgt.h> | 33 | #include "scsi_transport_srp_internal.h" |
34 | 34 | ||
35 | struct srp_host_attrs { | 35 | struct srp_host_attrs { |
36 | atomic_t next_port_id; | 36 | atomic_t next_port_id; |
@@ -223,8 +223,8 @@ struct srp_rport *srp_rport_add(struct Scsi_Host *shost, | |||
223 | } | 223 | } |
224 | 224 | ||
225 | if (ids->roles == SRP_RPORT_ROLE_INITIATOR) { | 225 | if (ids->roles == SRP_RPORT_ROLE_INITIATOR) { |
226 | ret = scsi_tgt_it_nexus_create(shost, (unsigned long)rport, | 226 | ret = srp_tgt_it_nexus_create(shost, (unsigned long)rport, |
227 | rport->port_id); | 227 | rport->port_id); |
228 | if (ret) { | 228 | if (ret) { |
229 | device_del(&rport->dev); | 229 | device_del(&rport->dev); |
230 | transport_destroy_device(&rport->dev); | 230 | transport_destroy_device(&rport->dev); |
@@ -251,8 +251,8 @@ void srp_rport_del(struct srp_rport *rport) | |||
251 | struct device *dev = &rport->dev; | 251 | struct device *dev = &rport->dev; |
252 | 252 | ||
253 | if (rport->roles == SRP_RPORT_ROLE_INITIATOR) | 253 | if (rport->roles == SRP_RPORT_ROLE_INITIATOR) |
254 | scsi_tgt_it_nexus_destroy(dev_to_shost(dev->parent), | 254 | srp_tgt_it_nexus_destroy(dev_to_shost(dev->parent), |
255 | (unsigned long)rport); | 255 | (unsigned long)rport); |
256 | 256 | ||
257 | transport_remove_device(dev); | 257 | transport_remove_device(dev); |
258 | device_del(dev); | 258 | device_del(dev); |