]> 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)
commit9d7e590d961f31284be407e43dcb5d70ede3d211
tree1ba2e58795fe5880f632097e1396f264c0438ebc
parent7b06659c52a30d7e296837995e27eb9140ba701d
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