diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2012-04-09 21:40:43 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-04-25 04:59:59 -0400 |
commit | 9d8ad782b9b5163351427ba0bcaa984aea474030 (patch) | |
tree | 29f08bf9f76248ee257933bb40bd8ab3a9f6d243 /drivers/scsi/bfa | |
parent | 17c201b3281cfc2c7d7ecfabb33313b747e414cb (diff) |
[SCSI] bfa: sysfs model description fix.
Make changes to remove unsupported model numbers from the sysfs
model description routine.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa')
-rw-r--r-- | drivers/scsi/bfa/bfad_attr.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/drivers/scsi/bfa/bfad_attr.c b/drivers/scsi/bfa/bfad_attr.c index d12be9dff4ba..8b6c6bf7837e 100644 --- a/drivers/scsi/bfa/bfad_attr.c +++ b/drivers/scsi/bfa/bfad_attr.c | |||
@@ -759,25 +759,10 @@ bfad_im_model_desc_show(struct device *dev, struct device_attribute *attr, | |||
759 | else if (!strcmp(model, "Brocade-804")) | 759 | else if (!strcmp(model, "Brocade-804")) |
760 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, | 760 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, |
761 | "Brocade 8Gbps FC HBA for HP Bladesystem C-class"); | 761 | "Brocade 8Gbps FC HBA for HP Bladesystem C-class"); |
762 | else if (!strcmp(model, "Brocade-902") || | 762 | else if (!strcmp(model, "Brocade-1741")) |
763 | !strcmp(model, "Brocade-1741")) | ||
764 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, | 763 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, |
765 | "Brocade 10Gbps CNA for Dell M-Series Blade Servers"); | 764 | "Brocade 10Gbps CNA for Dell M-Series Blade Servers"); |
766 | else if (strstr(model, "Brocade-1560")) { | 765 | else if (strstr(model, "Brocade-1860")) { |
767 | if (nports == 1) | ||
768 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, | ||
769 | "Brocade 16Gbps PCIe single port FC HBA"); | ||
770 | else | ||
771 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, | ||
772 | "Brocade 16Gbps PCIe dual port FC HBA"); | ||
773 | } else if (strstr(model, "Brocade-1710")) { | ||
774 | if (nports == 1) | ||
775 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, | ||
776 | "Brocade 10Gbps single port CNA"); | ||
777 | else | ||
778 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, | ||
779 | "Brocade 10Gbps dual port CNA"); | ||
780 | } else if (strstr(model, "Brocade-1860")) { | ||
781 | if (nports == 1 && bfa_ioc_is_cna(&bfad->bfa.ioc)) | 766 | if (nports == 1 && bfa_ioc_is_cna(&bfad->bfa.ioc)) |
782 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, | 767 | snprintf(model_descr, BFA_ADAPTER_MODEL_DESCR_LEN, |
783 | "Brocade 10Gbps single port CNA"); | 768 | "Brocade 10Gbps single port CNA"); |