diff options
Diffstat (limited to 'drivers/net/igbvf/ethtool.c')
-rw-r--r-- | drivers/net/igbvf/ethtool.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/igbvf/ethtool.c b/drivers/net/igbvf/ethtool.c index ed6e3d910247..1d943aa7c7a6 100644 --- a/drivers/net/igbvf/ethtool.c +++ b/drivers/net/igbvf/ethtool.c | |||
@@ -201,13 +201,11 @@ static void igbvf_get_regs(struct net_device *netdev, | |||
201 | struct igbvf_adapter *adapter = netdev_priv(netdev); | 201 | struct igbvf_adapter *adapter = netdev_priv(netdev); |
202 | struct e1000_hw *hw = &adapter->hw; | 202 | struct e1000_hw *hw = &adapter->hw; |
203 | u32 *regs_buff = p; | 203 | u32 *regs_buff = p; |
204 | u8 revision_id; | ||
205 | 204 | ||
206 | memset(p, 0, IGBVF_REGS_LEN * sizeof(u32)); | 205 | memset(p, 0, IGBVF_REGS_LEN * sizeof(u32)); |
207 | 206 | ||
208 | pci_read_config_byte(adapter->pdev, PCI_REVISION_ID, &revision_id); | 207 | regs->version = (1 << 24) | (adapter->pdev->revision << 16) | |
209 | 208 | adapter->pdev->device; | |
210 | regs->version = (1 << 24) | (revision_id << 16) | adapter->pdev->device; | ||
211 | 209 | ||
212 | regs_buff[0] = er32(CTRL); | 210 | regs_buff[0] = er32(CTRL); |
213 | regs_buff[1] = er32(STATUS); | 211 | regs_buff[1] = er32(STATUS); |