Commit 3c215fb1 authored by Vitaly Lifshits's avatar Vitaly Lifshits Committed by Jeff Kirsher

igc: remove IGC_REMOVED function

igc driver has leftovers from the previous device that supported
Virtualization. This can be found in the function IGC_REMOVED which
became obsolete, and can be removed.
Signed-off-by: default avatarVitaly Lifshits <vitaly.lifshits@intel.com>
Acked-by: default avatarSasha Neftin <sasha.neftin@intel.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 472abd32
...@@ -8,10 +8,6 @@ ...@@ -8,10 +8,6 @@
#include "igc_phy.h" #include "igc_phy.h"
#include "igc_defines.h" #include "igc_defines.h"
#ifndef IGC_REMOVED
#define IGC_REMOVED(a) (0)
#endif /* IGC_REMOVED */
/* forward declaration */ /* forward declaration */
s32 igc_disable_pcie_master(struct igc_hw *hw); s32 igc_disable_pcie_master(struct igc_hw *hw);
s32 igc_check_for_copper_link(struct igc_hw *hw); s32 igc_check_for_copper_link(struct igc_hw *hw);
......
...@@ -4659,9 +4659,6 @@ u32 igc_rd32(struct igc_hw *hw, u32 reg) ...@@ -4659,9 +4659,6 @@ u32 igc_rd32(struct igc_hw *hw, u32 reg)
u8 __iomem *hw_addr = READ_ONCE(hw->hw_addr); u8 __iomem *hw_addr = READ_ONCE(hw->hw_addr);
u32 value = 0; u32 value = 0;
if (IGC_REMOVED(hw_addr))
return ~value;
value = readl(&hw_addr[reg]); value = readl(&hw_addr[reg]);
/* reads should not return all F's */ /* reads should not return all F's */
......
...@@ -275,8 +275,7 @@ u32 igc_rd32(struct igc_hw *hw, u32 reg); ...@@ -275,8 +275,7 @@ u32 igc_rd32(struct igc_hw *hw, u32 reg);
#define wr32(reg, val) \ #define wr32(reg, val) \
do { \ do { \
u8 __iomem *hw_addr = READ_ONCE((hw)->hw_addr); \ u8 __iomem *hw_addr = READ_ONCE((hw)->hw_addr); \
if (!IGC_REMOVED(hw_addr)) \ writel((val), &hw_addr[(reg)]); \
writel((val), &hw_addr[(reg)]); \
} while (0) } while (0)
#define rd32(reg) (igc_rd32(hw, reg)) #define rd32(reg) (igc_rd32(hw, reg))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment