]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: use ixgbe_read_pci_cfg_word
authorJacob Keller <jacob.e.keller@intel.com>
Sat, 22 Feb 2014 01:23:58 +0000 (01:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 20 Mar 2014 07:37:29 +0000 (00:37 -0700)
commitb055e380ecbcbdff6d9fb4698e84d2f361bac819
tree1ba2e58795fe5880f632097e1396f264c0438ebc
parent9abbe1a6a48a1b231be1f4f45b8d0e4e837ddb84
ixgbe: use ixgbe_read_pci_cfg_word

This patch replaces some direct uses of pci_read_config_word with the
protected ixgbe_read_pci_cfg_word function, which checks for whether the
adapter is removed when LER is enabled. We shouldn't use the
pci_read_config_word calls directly because of these checks.

This patch also cleans up an unnecessary save of a pointer to the mac
object, as our standard style is to just use the hw pointer.

CC: Arun Sharma <asharma@fb.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c