diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2012-01-31 06:37:38 (GMT) |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2012-02-07 12:13:17 (GMT) |
commit | f23efdff77bbc1207255ccebe04771970604bbd9 (patch) | |
tree | dcb366127c4a1d6c7e3294aa80a79e4c364cb970 /drivers/net/ethernet | |
parent | 66092f59252cb53e5a997e1222ad203b78c8aa97 (diff) | |
download | linux-fsl-qoriq-f23efdff77bbc1207255ccebe04771970604bbd9.tar.xz |
e1000e: cleanup e1000_set_phys_id
Use the existing hw pointer.
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/ethtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c index f43af46..fd2ba38 100644 --- a/drivers/net/ethernet/intel/e1000e/ethtool.c +++ b/drivers/net/ethernet/intel/e1000e/ethtool.c @@ -1856,11 +1856,11 @@ static int e1000_set_phys_id(struct net_device *netdev, break; case ETHTOOL_ID_ON: - adapter->hw.mac.ops.led_on(&adapter->hw); + hw->mac.ops.led_on(hw); break; case ETHTOOL_ID_OFF: - adapter->hw.mac.ops.led_off(&adapter->hw); + hw->mac.ops.led_off(hw); break; } return 0; |