diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-26 16:13:48 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-31 16:32:36 -0700 |
commit | 83d4e1c33d9329e6d53cf4ac0a02c98ac83eba05 (patch) | |
tree | a2c696af985b939f687c660ef65d15e6e655181b /drivers/s390/scsi/zfcp_fc.c | |
parent | 8377dbc3cd376070145061212283c9e4a5afeb09 (diff) | |
download | lwn-83d4e1c33d9329e6d53cf4ac0a02c98ac83eba05.tar.gz lwn-83d4e1c33d9329e6d53cf4ac0a02c98ac83eba05.zip |
[SCSI] zfcp: cleanup port 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_fc.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_fc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.c b/drivers/s390/scsi/zfcp_fc.c index ff598cd68b2d..ca28e1c66115 100644 --- a/drivers/s390/scsi/zfcp_fc.c +++ b/drivers/s390/scsi/zfcp_fc.c @@ -668,7 +668,7 @@ static int zfcp_fc_eval_gpn_ft(struct zfcp_fc_req *fc_req, list_for_each_entry_safe(port, tmp, &remove_lh, list) { zfcp_erp_port_shutdown(port, 0, "fcegpf2"); - zfcp_device_unregister(&port->dev, &zfcp_sysfs_port_attrs); + device_unregister(&port->dev); } return ret; |