diff options
Diffstat (limited to 'drivers/scsi/scsi_transport_srp.c')
-rw-r--r-- | drivers/scsi/scsi_transport_srp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_srp.c b/drivers/scsi/scsi_transport_srp.c index 8a7af951d98a..21a045e0559f 100644 --- a/drivers/scsi/scsi_transport_srp.c +++ b/drivers/scsi/scsi_transport_srp.c | |||
@@ -212,7 +212,7 @@ struct srp_rport *srp_rport_add(struct Scsi_Host *shost, | |||
212 | rport->roles = ids->roles; | 212 | rport->roles = ids->roles; |
213 | 213 | ||
214 | id = atomic_inc_return(&to_srp_host_attrs(shost)->next_port_id); | 214 | id = atomic_inc_return(&to_srp_host_attrs(shost)->next_port_id); |
215 | sprintf(rport->dev.bus_id, "port-%d:%d", shost->host_no, id); | 215 | dev_set_name(&rport->dev, "port-%d:%d", shost->host_no, id); |
216 | 216 | ||
217 | transport_setup_device(&rport->dev); | 217 | transport_setup_device(&rport->dev); |
218 | 218 | ||