From: Nigel Kirkland Date: Thu, 25 Sep 2014 09:16:56 +0000 (-0400) Subject: qla2xxx: Free sysfs attributes for ISP27xx. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7473952e8de0eefed006bd415539f8161e87130d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git qla2xxx: Free sysfs attributes for ISP27xx. Signed-off-by: Nigel Kirkland Signed-off-by: Saurav Kashyap Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 677239f41ea5..9391e4bf1fbb 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -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);