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)
commit0d7c6e008e3f5b38e9126e7baeb35ce84581911a
tree1ba2e58795fe5880f632097e1396f264c0438ebc
parentcbcc637059f0c4ba539e8e8a3be378c6329ac8e2
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