diff options
Diffstat (limited to 'drivers/net/qlcnic/qlcnic_ethtool.c')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_ethtool.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/qlcnic/qlcnic_ethtool.c b/drivers/net/qlcnic/qlcnic_ethtool.c index 3bd514ec7e8f..3e4822ad5a80 100644 --- a/drivers/net/qlcnic/qlcnic_ethtool.c +++ b/drivers/net/qlcnic/qlcnic_ethtool.c | |||
@@ -683,13 +683,13 @@ static int qlcnic_loopback_test(struct net_device *netdev) | |||
683 | if (ret) | 683 | if (ret) |
684 | goto clear_it; | 684 | goto clear_it; |
685 | 685 | ||
686 | ret = qlcnic_set_ilb_mode(adapter); | 686 | ret = adapter->nic_ops->set_ilb_mode(adapter); |
687 | if (ret) | 687 | if (ret) |
688 | goto done; | 688 | goto done; |
689 | 689 | ||
690 | ret = qlcnic_do_ilb_test(adapter); | 690 | ret = qlcnic_do_ilb_test(adapter); |
691 | 691 | ||
692 | qlcnic_clear_ilb_mode(adapter); | 692 | adapter->nic_ops->clear_ilb_mode(adapter); |
693 | 693 | ||
694 | done: | 694 | done: |
695 | qlcnic_diag_free_res(netdev, max_sds_rings); | 695 | qlcnic_diag_free_res(netdev, max_sds_rings); |
@@ -715,7 +715,8 @@ static int qlcnic_irq_test(struct net_device *netdev) | |||
715 | 715 | ||
716 | adapter->diag_cnt = 0; | 716 | adapter->diag_cnt = 0; |
717 | ret = qlcnic_issue_cmd(adapter, adapter->ahw.pci_func, | 717 | ret = qlcnic_issue_cmd(adapter, adapter->ahw.pci_func, |
718 | QLCHAL_VERSION, adapter->portnum, 0, 0, 0x00000011); | 718 | adapter->fw_hal_version, adapter->portnum, |
719 | 0, 0, 0x00000011); | ||
719 | if (ret) | 720 | if (ret) |
720 | goto done; | 721 | goto done; |
721 | 722 | ||
@@ -834,7 +835,7 @@ static int qlcnic_blink_led(struct net_device *dev, u32 val) | |||
834 | struct qlcnic_adapter *adapter = netdev_priv(dev); | 835 | struct qlcnic_adapter *adapter = netdev_priv(dev); |
835 | int ret; | 836 | int ret; |
836 | 837 | ||
837 | ret = qlcnic_config_led(adapter, 1, 0xf); | 838 | ret = adapter->nic_ops->config_led(adapter, 1, 0xf); |
838 | if (ret) { | 839 | if (ret) { |
839 | dev_err(&adapter->pdev->dev, | 840 | dev_err(&adapter->pdev->dev, |
840 | "Failed to set LED blink state.\n"); | 841 | "Failed to set LED blink state.\n"); |
@@ -843,7 +844,7 @@ static int qlcnic_blink_led(struct net_device *dev, u32 val) | |||
843 | 844 | ||
844 | msleep_interruptible(val * 1000); | 845 | msleep_interruptible(val * 1000); |
845 | 846 | ||
846 | ret = qlcnic_config_led(adapter, 0, 0xf); | 847 | ret = adapter->nic_ops->config_led(adapter, 0, 0xf); |
847 | if (ret) { | 848 | if (ret) { |
848 | dev_err(&adapter->pdev->dev, | 849 | dev_err(&adapter->pdev->dev, |
849 | "Failed to reset LED blink state.\n"); | 850 | "Failed to reset LED blink state.\n"); |