diff options
author | Alexander Duyck <alexander.h.duyck@intel.com> | 2009-02-06 18:16:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-07 05:43:04 -0500 |
commit | c1889bfe687c22f74d1333913ffe8f8da173d601 (patch) | |
tree | dff3d16c38181e79437c6d6c82817a127b4de686 /drivers/net/igb/e1000_hw.h | |
parent | 4d6b725e4d8e499fad012a25381c8d9bf53fbf4b (diff) |
igb: make dev_spec a union and remove dynamic allocation
This patch makes dev_spec a union and simplifies it so that it does not
require dynamic allocation and freeing in the driver.
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb/e1000_hw.h')
-rw-r--r-- | drivers/net/igb/e1000_hw.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/net/igb/e1000_hw.h b/drivers/net/igb/e1000_hw.h index 99504a600a80..06f72ae6a2c2 100644 --- a/drivers/net/igb/e1000_hw.h +++ b/drivers/net/igb/e1000_hw.h | |||
@@ -565,9 +565,12 @@ struct e1000_fc_info { | |||
565 | enum e1000_fc_type original_type; | 565 | enum e1000_fc_type original_type; |
566 | }; | 566 | }; |
567 | 567 | ||
568 | struct e1000_dev_spec_82575 { | ||
569 | bool sgmii_active; | ||
570 | }; | ||
571 | |||
568 | struct e1000_hw { | 572 | struct e1000_hw { |
569 | void *back; | 573 | void *back; |
570 | void *dev_spec; | ||
571 | 574 | ||
572 | u8 __iomem *hw_addr; | 575 | u8 __iomem *hw_addr; |
573 | u8 __iomem *flash_address; | 576 | u8 __iomem *flash_address; |
@@ -580,7 +583,9 @@ struct e1000_hw { | |||
580 | struct e1000_bus_info bus; | 583 | struct e1000_bus_info bus; |
581 | struct e1000_host_mng_dhcp_cookie mng_cookie; | 584 | struct e1000_host_mng_dhcp_cookie mng_cookie; |
582 | 585 | ||
583 | u32 dev_spec_size; | 586 | union { |
587 | struct e1000_dev_spec_82575 _82575; | ||
588 | } dev_spec; | ||
584 | 589 | ||
585 | u16 device_id; | 590 | u16 device_id; |
586 | u16 subsystem_vendor_id; | 591 | u16 subsystem_vendor_id; |