diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-11-13 13:10:54 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-17 16:18:51 -0500 |
commit | 72c7296e03e381b49958809915105b18b09fa7a3 (patch) | |
tree | 55188276faa215a3501d3640e3c151a4039fa8b8 /drivers/net/wireless/rt2x00 | |
parent | a6a8d66ebaea1e78d779af221bd6f01c5cbe71f5 (diff) |
rt2x00: Remove unneccessary internal Kconfig symbols.
CONFIG_RT2800PCI_PCI and CONFIG_RT2800PCI_SOC are strictly not needed
as we can check the dependent symbols directly in the rest of Kconfig
and the code, so clean up the Kconfig namespace a bit.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/Kconfig | 16 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 34 |
2 files changed, 20 insertions, 30 deletions
diff --git a/drivers/net/wireless/rt2x00/Kconfig b/drivers/net/wireless/rt2x00/Kconfig index a6939ccd68cc..ade30251608e 100644 --- a/drivers/net/wireless/rt2x00/Kconfig +++ b/drivers/net/wireless/rt2x00/Kconfig | |||
@@ -53,22 +53,12 @@ config RT61PCI | |||
53 | 53 | ||
54 | When compiled as a module, this driver will be called rt61pci. | 54 | When compiled as a module, this driver will be called rt61pci. |
55 | 55 | ||
56 | config RT2800PCI_PCI | ||
57 | boolean | ||
58 | depends on PCI | ||
59 | default y | ||
60 | |||
61 | config RT2800PCI_SOC | ||
62 | boolean | ||
63 | depends on RALINK_RT288X || RALINK_RT305X | ||
64 | default y | ||
65 | |||
66 | config RT2800PCI | 56 | config RT2800PCI |
67 | tristate "Ralink rt27xx/rt28xx/rt30xx (PCI/PCIe/PCMCIA) support" | 57 | tristate "Ralink rt27xx/rt28xx/rt30xx (PCI/PCIe/PCMCIA) support" |
68 | depends on RT2800PCI_PCI || RT2800PCI_SOC | 58 | depends on PCI || RALINK_RT288X || RALINK_RT305X |
69 | select RT2800_LIB | 59 | select RT2800_LIB |
70 | select RT2X00_LIB_PCI if RT2800PCI_PCI | 60 | select RT2X00_LIB_PCI if PCI |
71 | select RT2X00_LIB_SOC if RT2800PCI_SOC | 61 | select RT2X00_LIB_SOC if RALINK_RT288X || RALINK_RT305X |
72 | select RT2X00_LIB_HT | 62 | select RT2X00_LIB_HT |
73 | select RT2X00_LIB_FIRMWARE | 63 | select RT2X00_LIB_FIRMWARE |
74 | select RT2X00_LIB_CRYPTO | 64 | select RT2X00_LIB_CRYPTO |
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 97f4df62ee63..b0946f8f3457 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -84,7 +84,7 @@ static void rt2800pci_mcu_status(struct rt2x00_dev *rt2x00dev, const u8 token) | |||
84 | rt2800_register_write(rt2x00dev, H2M_MAILBOX_CID, ~0); | 84 | rt2800_register_write(rt2x00dev, H2M_MAILBOX_CID, ~0); |
85 | } | 85 | } |
86 | 86 | ||
87 | #ifdef CONFIG_RT2800PCI_SOC | 87 | #if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X) |
88 | static void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev) | 88 | static void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev) |
89 | { | 89 | { |
90 | u32 *base_addr = (u32 *) KSEG1ADDR(0x1F040000); /* XXX for RT3052 */ | 90 | u32 *base_addr = (u32 *) KSEG1ADDR(0x1F040000); /* XXX for RT3052 */ |
@@ -95,9 +95,9 @@ static void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev) | |||
95 | static inline void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev) | 95 | static inline void rt2800pci_read_eeprom_soc(struct rt2x00_dev *rt2x00dev) |
96 | { | 96 | { |
97 | } | 97 | } |
98 | #endif /* CONFIG_RT2800PCI_SOC */ | 98 | #endif /* CONFIG_RALINK_RT288X || CONFIG_RALINK_RT305X */ |
99 | 99 | ||
100 | #ifdef CONFIG_RT2800PCI_PCI | 100 | #ifdef CONFIG_PCI |
101 | static void rt2800pci_eepromregister_read(struct eeprom_93cx6 *eeprom) | 101 | static void rt2800pci_eepromregister_read(struct eeprom_93cx6 *eeprom) |
102 | { | 102 | { |
103 | struct rt2x00_dev *rt2x00dev = eeprom->data; | 103 | struct rt2x00_dev *rt2x00dev = eeprom->data; |
@@ -181,7 +181,7 @@ static inline int rt2800pci_efuse_detect(struct rt2x00_dev *rt2x00dev) | |||
181 | static inline void rt2800pci_read_eeprom_efuse(struct rt2x00_dev *rt2x00dev) | 181 | static inline void rt2800pci_read_eeprom_efuse(struct rt2x00_dev *rt2x00dev) |
182 | { | 182 | { |
183 | } | 183 | } |
184 | #endif /* CONFIG_RT2800PCI_PCI */ | 184 | #endif /* CONFIG_PCI */ |
185 | 185 | ||
186 | /* | 186 | /* |
187 | * Firmware functions | 187 | * Firmware functions |
@@ -1031,7 +1031,7 @@ static const struct rt2x00_ops rt2800pci_ops = { | |||
1031 | /* | 1031 | /* |
1032 | * RT2800pci module information. | 1032 | * RT2800pci module information. |
1033 | */ | 1033 | */ |
1034 | #ifdef CONFIG_RT2800PCI_PCI | 1034 | #ifdef CONFIG_PCI |
1035 | static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = { | 1035 | static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = { |
1036 | { PCI_DEVICE(0x1814, 0x0601), PCI_DEVICE_DATA(&rt2800pci_ops) }, | 1036 | { PCI_DEVICE(0x1814, 0x0601), PCI_DEVICE_DATA(&rt2800pci_ops) }, |
1037 | { PCI_DEVICE(0x1814, 0x0681), PCI_DEVICE_DATA(&rt2800pci_ops) }, | 1037 | { PCI_DEVICE(0x1814, 0x0681), PCI_DEVICE_DATA(&rt2800pci_ops) }, |
@@ -1061,19 +1061,19 @@ static DEFINE_PCI_DEVICE_TABLE(rt2800pci_device_table) = { | |||
1061 | #endif | 1061 | #endif |
1062 | { 0, } | 1062 | { 0, } |
1063 | }; | 1063 | }; |
1064 | #endif /* CONFIG_RT2800PCI_PCI */ | 1064 | #endif /* CONFIG_PCI */ |
1065 | 1065 | ||
1066 | MODULE_AUTHOR(DRV_PROJECT); | 1066 | MODULE_AUTHOR(DRV_PROJECT); |
1067 | MODULE_VERSION(DRV_VERSION); | 1067 | MODULE_VERSION(DRV_VERSION); |
1068 | MODULE_DESCRIPTION("Ralink RT2800 PCI & PCMCIA Wireless LAN driver."); | 1068 | MODULE_DESCRIPTION("Ralink RT2800 PCI & PCMCIA Wireless LAN driver."); |
1069 | MODULE_SUPPORTED_DEVICE("Ralink RT2860 PCI & PCMCIA chipset based cards"); | 1069 | MODULE_SUPPORTED_DEVICE("Ralink RT2860 PCI & PCMCIA chipset based cards"); |
1070 | #ifdef CONFIG_RT2800PCI_PCI | 1070 | #ifdef CONFIG_PCI |
1071 | MODULE_FIRMWARE(FIRMWARE_RT2860); | 1071 | MODULE_FIRMWARE(FIRMWARE_RT2860); |
1072 | MODULE_DEVICE_TABLE(pci, rt2800pci_device_table); | 1072 | MODULE_DEVICE_TABLE(pci, rt2800pci_device_table); |
1073 | #endif /* CONFIG_RT2800PCI_PCI */ | 1073 | #endif /* CONFIG_PCI */ |
1074 | MODULE_LICENSE("GPL"); | 1074 | MODULE_LICENSE("GPL"); |
1075 | 1075 | ||
1076 | #ifdef CONFIG_RT2800PCI_SOC | 1076 | #if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X) |
1077 | static int rt2800soc_probe(struct platform_device *pdev) | 1077 | static int rt2800soc_probe(struct platform_device *pdev) |
1078 | { | 1078 | { |
1079 | return rt2x00soc_probe(pdev, &rt2800pci_ops); | 1079 | return rt2x00soc_probe(pdev, &rt2800pci_ops); |
@@ -1090,9 +1090,9 @@ static struct platform_driver rt2800soc_driver = { | |||
1090 | .suspend = rt2x00soc_suspend, | 1090 | .suspend = rt2x00soc_suspend, |
1091 | .resume = rt2x00soc_resume, | 1091 | .resume = rt2x00soc_resume, |
1092 | }; | 1092 | }; |
1093 | #endif /* CONFIG_RT2800PCI_SOC */ | 1093 | #endif /* CONFIG_RALINK_RT288X || CONFIG_RALINK_RT305X */ |
1094 | 1094 | ||
1095 | #ifdef CONFIG_RT2800PCI_PCI | 1095 | #ifdef CONFIG_PCI |
1096 | static struct pci_driver rt2800pci_driver = { | 1096 | static struct pci_driver rt2800pci_driver = { |
1097 | .name = KBUILD_MODNAME, | 1097 | .name = KBUILD_MODNAME, |
1098 | .id_table = rt2800pci_device_table, | 1098 | .id_table = rt2800pci_device_table, |
@@ -1101,21 +1101,21 @@ static struct pci_driver rt2800pci_driver = { | |||
1101 | .suspend = rt2x00pci_suspend, | 1101 | .suspend = rt2x00pci_suspend, |
1102 | .resume = rt2x00pci_resume, | 1102 | .resume = rt2x00pci_resume, |
1103 | }; | 1103 | }; |
1104 | #endif /* CONFIG_RT2800PCI_PCI */ | 1104 | #endif /* CONFIG_PCI */ |
1105 | 1105 | ||
1106 | static int __init rt2800pci_init(void) | 1106 | static int __init rt2800pci_init(void) |
1107 | { | 1107 | { |
1108 | int ret = 0; | 1108 | int ret = 0; |
1109 | 1109 | ||
1110 | #ifdef CONFIG_RT2800PCI_SOC | 1110 | #if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X) |
1111 | ret = platform_driver_register(&rt2800soc_driver); | 1111 | ret = platform_driver_register(&rt2800soc_driver); |
1112 | if (ret) | 1112 | if (ret) |
1113 | return ret; | 1113 | return ret; |
1114 | #endif | 1114 | #endif |
1115 | #ifdef CONFIG_RT2800PCI_PCI | 1115 | #ifdef CONFIG_PCI |
1116 | ret = pci_register_driver(&rt2800pci_driver); | 1116 | ret = pci_register_driver(&rt2800pci_driver); |
1117 | if (ret) { | 1117 | if (ret) { |
1118 | #ifdef CONFIG_RT2800PCI_SOC | 1118 | #if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X) |
1119 | platform_driver_unregister(&rt2800soc_driver); | 1119 | platform_driver_unregister(&rt2800soc_driver); |
1120 | #endif | 1120 | #endif |
1121 | return ret; | 1121 | return ret; |
@@ -1127,10 +1127,10 @@ static int __init rt2800pci_init(void) | |||
1127 | 1127 | ||
1128 | static void __exit rt2800pci_exit(void) | 1128 | static void __exit rt2800pci_exit(void) |
1129 | { | 1129 | { |
1130 | #ifdef CONFIG_RT2800PCI_PCI | 1130 | #ifdef CONFIG_PCI |
1131 | pci_unregister_driver(&rt2800pci_driver); | 1131 | pci_unregister_driver(&rt2800pci_driver); |
1132 | #endif | 1132 | #endif |
1133 | #ifdef CONFIG_RT2800PCI_SOC | 1133 | #if defined(CONFIG_RALINK_RT288X) || defined(CONFIG_RALINK_RT305X) |
1134 | platform_driver_unregister(&rt2800soc_driver); | 1134 | platform_driver_unregister(&rt2800soc_driver); |
1135 | #endif | 1135 | #endif |
1136 | } | 1136 | } |