diff options
author | Chad Dupuis <chad.dupuis@qlogic.com> | 2013-10-30 11:38:15 +0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-12-19 19:38:58 +0400 |
commit | fe1b806f4f7172b1eae18ddeebb7d8fb351043f7 (patch) | |
tree | a18bba2af3f15f73dd953575af1054b529a4d20b /drivers/scsi/qla2xxx/qla_attr.c | |
parent | 50280c014de9d10f430bfbf3b343784d4cf1fc15 (diff) | |
download | linux-fe1b806f4f7172b1eae18ddeebb7d8fb351043f7.tar.xz |
[SCSI] qla2xxx: Refactor shutdown code so some functionality can be reused.
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 5f174b83f56f..3464782ab5a4 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -862,7 +862,7 @@ qla2x00_alloc_sysfs_attr(scsi_qla_host_t *vha) } void -qla2x00_free_sysfs_attr(scsi_qla_host_t *vha) +qla2x00_free_sysfs_attr(scsi_qla_host_t *vha, bool stop_beacon) { struct Scsi_Host *host = vha->host; struct sysfs_entry *iter; @@ -880,7 +880,7 @@ qla2x00_free_sysfs_attr(scsi_qla_host_t *vha) iter->attr); } - if (ha->beacon_blink_led == 1) + if (stop_beacon && ha->beacon_blink_led == 1) ha->isp_ops->beacon_off(vha); } |