diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-26 16:13:49 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-31 16:32:37 -0700 |
commit | 86bdf218a717b77cb775b82ce48c7847cb72a86d (patch) | |
tree | 44b48f8c9d984e3243d6b8e6bfa6ebed0c5e6222 /drivers/s390/scsi/zfcp_ccw.c | |
parent | 83d4e1c33d9329e6d53cf4ac0a02c98ac83eba05 (diff) | |
download | blackbird-op-linux-86bdf218a717b77cb775b82ce48c7847cb72a86d.tar.gz blackbird-op-linux-86bdf218a717b77cb775b82ce48c7847cb72a86d.zip |
[SCSI] zfcp: cleanup unit sysfs attribute usage
Let the driver core handle device attribute creation and removal. This
will simplify the code and eliminates races between attribute
availability and userspace notification via uevents.
Reviewed-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_ccw.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_ccw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_ccw.c b/drivers/s390/scsi/zfcp_ccw.c index 202f39572880..8e71d35a64cc 100644 --- a/drivers/s390/scsi/zfcp_ccw.c +++ b/drivers/s390/scsi/zfcp_ccw.c @@ -129,7 +129,7 @@ static void zfcp_ccw_remove(struct ccw_device *cdev) zfcp_ccw_adapter_put(adapter); /* put from zfcp_ccw_adapter_by_cdev */ list_for_each_entry_safe(unit, u, &unit_remove_lh, list) - zfcp_device_unregister(&unit->dev, &zfcp_sysfs_unit_attrs); + device_unregister(&unit->dev); list_for_each_entry_safe(port, p, &port_remove_lh, list) device_unregister(&port->dev); |