diff options
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_ctx.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ctx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ctx.c b/drivers/net/qlcnic/qlcnic_ctx.c index a4c4d091739e..75e3b19e35ee 100644 --- a/drivers/net/qlcnic/qlcnic_ctx.c +++ b/drivers/net/qlcnic/qlcnic_ctx.c | |||
@@ -742,15 +742,15 @@ int qlcnic_get_pci_info(struct qlcnic_adapter *adapter, | |||
742 | 742 | ||
743 | if (err == QLCNIC_RCODE_SUCCESS) { | 743 | if (err == QLCNIC_RCODE_SUCCESS) { |
744 | for (i = 0; i < QLCNIC_MAX_PCI_FUNC; i++, npar++, pci_info++) { | 744 | for (i = 0; i < QLCNIC_MAX_PCI_FUNC; i++, npar++, pci_info++) { |
745 | pci_info->id = le32_to_cpu(npar->id); | 745 | pci_info->id = le16_to_cpu(npar->id); |
746 | pci_info->active = le32_to_cpu(npar->active); | 746 | pci_info->active = le16_to_cpu(npar->active); |
747 | pci_info->type = le32_to_cpu(npar->type); | 747 | pci_info->type = le16_to_cpu(npar->type); |
748 | pci_info->default_port = | 748 | pci_info->default_port = |
749 | le32_to_cpu(npar->default_port); | 749 | le16_to_cpu(npar->default_port); |
750 | pci_info->tx_min_bw = | 750 | pci_info->tx_min_bw = |
751 | le32_to_cpu(npar->tx_min_bw); | 751 | le16_to_cpu(npar->tx_min_bw); |
752 | pci_info->tx_max_bw = | 752 | pci_info->tx_max_bw = |
753 | le32_to_cpu(npar->tx_max_bw); | 753 | le16_to_cpu(npar->tx_max_bw); |
754 | memcpy(pci_info->mac, npar->mac, ETH_ALEN); | 754 | memcpy(pci_info->mac, npar->mac, ETH_ALEN); |
755 | } | 755 | } |
756 | } else { | 756 | } else { |