Skip to content

Commit

Permalink
qla2xxx: Free sysfs attributes for ISP27xx.
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Kirkland <nigel.kirkland@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
Nigel Kirkland authored and Christoph Hellwig committed Sep 25, 2014
1 parent 2d5a4c3 commit 7473952
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/qla2xxx/qla_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,8 @@ qla2x00_free_sysfs_attr(scsi_qla_host_t *vha, bool stop_beacon)
continue;
if (iter->is4GBp_only == 3 && !(IS_CNA_CAPABLE(vha->hw)))
continue;
if (iter->is4GBp_only == 0x27 && !IS_QLA27XX(vha->hw))
continue;

sysfs_remove_bin_file(&host->shost_gendev.kobj,
iter->attr);
Expand Down

0 comments on commit 7473952

Please sign in to comment.