diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2008-12-21 23:19:57 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-21 23:19:57 -0500 |
commit | 69fc405318967c7913e5b55cf3906250a26b49d0 (patch) | |
tree | 9b885268fd7cf4d9f6170b8791b934bdd44bb2e3 /drivers/net/tg3.h | |
parent | 027455adacdc142cc018e555ce391014fa227e70 (diff) |
tg3: Remove unused cfgspc device members
This patch removes the pci_bist and pci_hdr_type members from the
device structure and removes the code that references them. They are
not really used.
The patch rounds out the changes by moving the pci_cmd member to plug
a structure hole that would have been created. On 32-bit systems, this
movement removes a subsequent structure hole later in the structure. On
64-bit systems though, the movement merely consolidates two holes into
one larger hole.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r-- | drivers/net/tg3.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index f3cda6428af6..814d82b934db 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2676,10 +2676,9 @@ struct tg3 { | |||
2676 | 2676 | ||
2677 | /* PCI block */ | 2677 | /* PCI block */ |
2678 | u32 pci_chip_rev_id; | 2678 | u32 pci_chip_rev_id; |
2679 | u16 pci_cmd; | ||
2679 | u8 pci_cacheline_sz; | 2680 | u8 pci_cacheline_sz; |
2680 | u8 pci_lat_timer; | 2681 | u8 pci_lat_timer; |
2681 | u8 pci_hdr_type; | ||
2682 | u8 pci_bist; | ||
2683 | 2682 | ||
2684 | int pm_cap; | 2683 | int pm_cap; |
2685 | int msi_cap; | 2684 | int msi_cap; |
@@ -2730,7 +2729,6 @@ struct tg3 { | |||
2730 | 2729 | ||
2731 | u32 led_ctrl; | 2730 | u32 led_ctrl; |
2732 | u32 phy_otp; | 2731 | u32 phy_otp; |
2733 | u16 pci_cmd; | ||
2734 | 2732 | ||
2735 | char board_part_number[24]; | 2733 | char board_part_number[24]; |
2736 | #define TG3_VER_SIZE 32 | 2734 | #define TG3_VER_SIZE 32 |