diff options
author | shemminger@osdl.org <shemminger@osdl.org> | 2005-11-30 14:45:11 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 02:20:19 -0500 |
commit | 214376434863f9ca109a7853fbbd6db284d3fba7 (patch) | |
tree | 98dac6bedd25e7c6361b950c5efbd5c432e4bd89 | |
parent | e538af42e416ac17368593370f7e1f5a71d55197 (diff) |
[PATCH] sky2: eliminate special case for EC-A1
Eliminate special case for EC-A1. The overhead isn't so
great that having config option is worth it.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
-rw-r--r-- | drivers/net/Kconfig | 7 | ||||
-rw-r--r-- | drivers/net/sky2.c | 8 |
2 files changed, 2 insertions, 13 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index fca6000d6e01..0f2e4c11f80f 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -2022,13 +2022,6 @@ config SKY2 | |||
2022 | To compile this driver as a module, choose M here: the module | 2022 | To compile this driver as a module, choose M here: the module |
2023 | will be called sky2. This is recommended. | 2023 | will be called sky2. This is recommended. |
2024 | 2024 | ||
2025 | config SKY2_EC_A1 | ||
2026 | bool "Support old Yukon-EC A1 chipset" | ||
2027 | depends on SKY2 | ||
2028 | ---help--- | ||
2029 | Include support for early revisions of the Yukon EC chipset | ||
2030 | that required extra workarounds. If in doubt, say N. | ||
2031 | |||
2032 | config SK98LIN | 2025 | config SK98LIN |
2033 | tristate "Marvell Yukon Chipset / SysKonnect SK-98xx Support" | 2026 | tristate "Marvell Yukon Chipset / SysKonnect SK-98xx Support" |
2034 | depends on PCI | 2027 | depends on PCI |
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 9f89000e5ad5..d7a94d62d80f 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -67,13 +67,9 @@ | |||
67 | * a receive requires one (or two if using 64 bit dma). | 67 | * a receive requires one (or two if using 64 bit dma). |
68 | */ | 68 | */ |
69 | 69 | ||
70 | #ifdef CONFIG_SKY2_EC_A1 | ||
71 | #define is_ec_a1(hw) \ | 70 | #define is_ec_a1(hw) \ |
72 | ((hw)->chip_id == CHIP_ID_YUKON_EC && \ | 71 | unlikely((hw)->chip_id == CHIP_ID_YUKON_EC && \ |
73 | (hw)->chip_rev == CHIP_REV_YU_EC_A1) | 72 | (hw)->chip_rev == CHIP_REV_YU_EC_A1) |
74 | #else | ||
75 | #define is_ec_a1(hw) 0 | ||
76 | #endif | ||
77 | 73 | ||
78 | #define RX_LE_SIZE 256 | 74 | #define RX_LE_SIZE 256 |
79 | #define RX_LE_BYTES (RX_LE_SIZE*sizeof(struct sky2_rx_le)) | 75 | #define RX_LE_BYTES (RX_LE_SIZE*sizeof(struct sky2_rx_le)) |