diff options
author | Emil Tantilov <emil.s.tantilov@intel.com> | 2011-03-31 05:36:18 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2011-04-13 22:26:06 -0400 |
commit | b776d1043510c60f59220eb5e58b524f5a7f0e52 (patch) | |
tree | bbc53cc64c1c1d0a94d559259cf26ca89f32bf49 /drivers/net/ixgbe/ixgbe_x540.c | |
parent | a59e8a1a72806057084adc2d321fc2a7cbce9579 (diff) |
ixgbe: make device_caps() generic
x540 has the same device capability word in the EEPROM as 82599.
This patch renames ixgbe_get_device_caps_82599 to
ixgbe_get_device_caps_generic, moves it to ixgbe_common.h and
sets up the function pointer for x540.
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Evan Swanson <evan.swanson@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_x540.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_x540.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_x540.c b/drivers/net/ixgbe/ixgbe_x540.c index 5433f15c1e1b..05f8e9cddef4 100644 --- a/drivers/net/ixgbe/ixgbe_x540.c +++ b/drivers/net/ixgbe/ixgbe_x540.c | |||
@@ -754,7 +754,7 @@ static struct ixgbe_mac_operations mac_ops_X540 = { | |||
754 | .enable_rx_dma = &ixgbe_enable_rx_dma_generic, | 754 | .enable_rx_dma = &ixgbe_enable_rx_dma_generic, |
755 | .get_mac_addr = &ixgbe_get_mac_addr_generic, | 755 | .get_mac_addr = &ixgbe_get_mac_addr_generic, |
756 | .get_san_mac_addr = &ixgbe_get_san_mac_addr_generic, | 756 | .get_san_mac_addr = &ixgbe_get_san_mac_addr_generic, |
757 | .get_device_caps = NULL, | 757 | .get_device_caps = &ixgbe_get_device_caps_generic, |
758 | .get_wwn_prefix = &ixgbe_get_wwn_prefix_generic, | 758 | .get_wwn_prefix = &ixgbe_get_wwn_prefix_generic, |
759 | .stop_adapter = &ixgbe_stop_adapter_generic, | 759 | .stop_adapter = &ixgbe_stop_adapter_generic, |
760 | .get_bus_info = &ixgbe_get_bus_info_generic, | 760 | .get_bus_info = &ixgbe_get_bus_info_generic, |