diff options
author | Cornelia Huck <cornelia.huck@de.ibm.com> | 2008-10-10 15:33:10 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-10-10 15:33:50 -0400 |
commit | 1bf5b2853925cf92bfc5f0eddb68a8ed18782845 (patch) | |
tree | acc51c9017ea2c8f155be805f49cfe68a23c6a9b /drivers/s390/scsi | |
parent | 2a0217d5c7d22d6dd28f8ae5d20b06d24dc426b8 (diff) |
[S390] bus_id -> dev_set_name() changes
Convert most s390 users setting bus_id to dev_set_name().
css and ccw busses are deferred since they need some special
treatment.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/scsi')
-rw-r--r-- | drivers/s390/scsi/zfcp_aux.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/s390/scsi/zfcp_aux.c b/drivers/s390/scsi/zfcp_aux.c index 24255e42dc30..3b56220fb900 100644 --- a/drivers/s390/scsi/zfcp_aux.c +++ b/drivers/s390/scsi/zfcp_aux.c | |||
@@ -283,8 +283,8 @@ struct zfcp_unit *zfcp_unit_enqueue(struct zfcp_port *port, u64 fcp_lun) | |||
283 | unit->port = port; | 283 | unit->port = port; |
284 | unit->fcp_lun = fcp_lun; | 284 | unit->fcp_lun = fcp_lun; |
285 | 285 | ||
286 | snprintf(unit->sysfs_device.bus_id, BUS_ID_SIZE, "0x%016llx", | 286 | dev_set_name(&unit->sysfs_device, "0x%016llx", |
287 | (unsigned long long) fcp_lun); | 287 | (unsigned long long) fcp_lun); |
288 | unit->sysfs_device.parent = &port->sysfs_device; | 288 | unit->sysfs_device.parent = &port->sysfs_device; |
289 | unit->sysfs_device.release = zfcp_sysfs_unit_release; | 289 | unit->sysfs_device.release = zfcp_sysfs_unit_release; |
290 | dev_set_drvdata(&unit->sysfs_device, unit); | 290 | dev_set_drvdata(&unit->sysfs_device, unit); |
@@ -610,8 +610,7 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn, | |||
610 | atomic_set_mask(status | ZFCP_STATUS_COMMON_REMOVE, &port->status); | 610 | atomic_set_mask(status | ZFCP_STATUS_COMMON_REMOVE, &port->status); |
611 | atomic_set(&port->refcount, 0); | 611 | atomic_set(&port->refcount, 0); |
612 | 612 | ||
613 | snprintf(port->sysfs_device.bus_id, BUS_ID_SIZE, "0x%016llx", | 613 | dev_set_name(&port->sysfs_device, "0x%016llx", wwpn); |
614 | (unsigned long long) wwpn); | ||
615 | port->sysfs_device.parent = &adapter->ccw_device->dev; | 614 | port->sysfs_device.parent = &adapter->ccw_device->dev; |
616 | 615 | ||
617 | port->sysfs_device.release = zfcp_sysfs_port_release; | 616 | port->sysfs_device.release = zfcp_sysfs_port_release; |