aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c10
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.h6
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c22
3 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 8c8d7cffccfb..4a40109d4aa0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -4930,7 +4930,7 @@ static struct iwl_ops iwl4965_ops = {
4930 .utils = &iwl4965_hcmd_utils, 4930 .utils = &iwl4965_hcmd_utils,
4931}; 4931};
4932 4932
4933static struct iwl_cfg iwl4965_agn_cfg = { 4933struct iwl_cfg iwl4965_agn_cfg = {
4934 .name = "4965AGN", 4934 .name = "4965AGN",
4935 .fw_name = "iwlwifi-4965" IWL4965_UCODE_API ".ucode", 4935 .fw_name = "iwlwifi-4965" IWL4965_UCODE_API ".ucode",
4936 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, 4936 .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N,
@@ -4938,14 +4938,6 @@ static struct iwl_cfg iwl4965_agn_cfg = {
4938 .mod_params = &iwl4965_mod_params, 4938 .mod_params = &iwl4965_mod_params,
4939}; 4939};
4940 4940
4941struct pci_device_id iwl4965_hw_card_ids[] = {
4942 {IWL_PCI_DEVICE(0x4229, PCI_ANY_ID, iwl4965_agn_cfg)},
4943 {IWL_PCI_DEVICE(0x4230, PCI_ANY_ID, iwl4965_agn_cfg)},
4944 {0}
4945};
4946
4947MODULE_DEVICE_TABLE(pci, iwl4965_hw_card_ids);
4948
4949module_param_named(antenna, iwl4965_mod_params.antenna, int, 0444); 4941module_param_named(antenna, iwl4965_mod_params.antenna, int, 0444);
4950MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])"); 4942MODULE_PARM_DESC(antenna, "select antenna (1=Main, 2=Aux, default 0 [both])");
4951module_param_named(disable, iwl4965_mod_params.disable, int, 0444); 4943module_param_named(disable, iwl4965_mod_params.disable, int, 0444);
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.h b/drivers/net/wireless/iwlwifi/iwl-4965.h
index cf909e86ed29..ddcbad59092b 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.h
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.h
@@ -36,9 +36,6 @@
36#include <linux/kernel.h> 36#include <linux/kernel.h>
37#include <net/ieee80211_radiotap.h> 37#include <net/ieee80211_radiotap.h>
38 38
39/* Hardware specific file defines the PCI IDs table for that hardware module */
40extern struct pci_device_id iwl4965_hw_card_ids[];
41
42#define DRV_NAME "iwl4965" 39#define DRV_NAME "iwl4965"
43#include "iwl-rfkill.h" 40#include "iwl-rfkill.h"
44#include "iwl-eeprom.h" 41#include "iwl-eeprom.h"
@@ -48,6 +45,9 @@ extern struct pci_device_id iwl4965_hw_card_ids[];
48#include "iwl-debug.h" 45#include "iwl-debug.h"
49#include "iwl-led.h" 46#include "iwl-led.h"
50 47
48/* configuration for the iwl4965 */
49extern struct iwl_cfg iwl4965_agn_cfg;
50
51/* Change firmware file name, using "-" and incrementing number, 51/* Change firmware file name, using "-" and incrementing number,
52 * *only* when uCode interface or architecture changes so that it 52 * *only* when uCode interface or architecture changes so that it
53 * is not compatible with earlier drivers. 53 * is not compatible with earlier drivers.
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index c71910df62aa..249af4156c13 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -8020,9 +8020,17 @@ static int iwl4965_pci_resume(struct pci_dev *pdev)
8020 * 8020 *
8021 *****************************************************************************/ 8021 *****************************************************************************/
8022 8022
8023static struct pci_driver iwl4965_driver = { 8023/* Hardware specific file defines the PCI IDs table for that hardware module */
8024static struct pci_device_id iwl_hw_card_ids[] = {
8025 {IWL_PCI_DEVICE(0x4229, PCI_ANY_ID, iwl4965_agn_cfg)},
8026 {IWL_PCI_DEVICE(0x4230, PCI_ANY_ID, iwl4965_agn_cfg)},
8027 {0}
8028};
8029MODULE_DEVICE_TABLE(pci, iwl_hw_card_ids);
8030
8031static struct pci_driver iwl_driver = {
8024 .name = DRV_NAME, 8032 .name = DRV_NAME,
8025 .id_table = iwl4965_hw_card_ids, 8033 .id_table = iwl_hw_card_ids,
8026 .probe = iwl4965_pci_probe, 8034 .probe = iwl4965_pci_probe,
8027 .remove = __devexit_p(iwl4965_pci_remove), 8035 .remove = __devexit_p(iwl4965_pci_remove),
8028#ifdef CONFIG_PM 8036#ifdef CONFIG_PM
@@ -8044,13 +8052,13 @@ static int __init iwl4965_init(void)
8044 return ret; 8052 return ret;
8045 } 8053 }
8046 8054
8047 ret = pci_register_driver(&iwl4965_driver); 8055 ret = pci_register_driver(&iwl_driver);
8048 if (ret) { 8056 if (ret) {
8049 IWL_ERROR("Unable to initialize PCI module\n"); 8057 IWL_ERROR("Unable to initialize PCI module\n");
8050 goto error_register; 8058 goto error_register;
8051 } 8059 }
8052#ifdef CONFIG_IWLWIFI_DEBUG 8060#ifdef CONFIG_IWLWIFI_DEBUG
8053 ret = driver_create_file(&iwl4965_driver.driver, &driver_attr_debug_level); 8061 ret = driver_create_file(&iwl_driver.driver, &driver_attr_debug_level);
8054 if (ret) { 8062 if (ret) {
8055 IWL_ERROR("Unable to create driver sysfs file\n"); 8063 IWL_ERROR("Unable to create driver sysfs file\n");
8056 goto error_debug; 8064 goto error_debug;
@@ -8061,7 +8069,7 @@ static int __init iwl4965_init(void)
8061 8069
8062#ifdef CONFIG_IWLWIFI_DEBUG 8070#ifdef CONFIG_IWLWIFI_DEBUG
8063error_debug: 8071error_debug:
8064 pci_unregister_driver(&iwl4965_driver); 8072 pci_unregister_driver(&iwl_driver);
8065#endif 8073#endif
8066error_register: 8074error_register:
8067 iwl4965_rate_control_unregister(); 8075 iwl4965_rate_control_unregister();
@@ -8071,9 +8079,9 @@ error_register:
8071static void __exit iwl4965_exit(void) 8079static void __exit iwl4965_exit(void)
8072{ 8080{
8073#ifdef CONFIG_IWLWIFI_DEBUG 8081#ifdef CONFIG_IWLWIFI_DEBUG
8074 driver_remove_file(&iwl4965_driver.driver, &driver_attr_debug_level); 8082 driver_remove_file(&iwl_driver.driver, &driver_attr_debug_level);
8075#endif 8083#endif
8076 pci_unregister_driver(&iwl4965_driver); 8084 pci_unregister_driver(&iwl_driver);
8077 iwl4965_rate_control_unregister(); 8085 iwl4965_rate_control_unregister();
8078} 8086}
8079 8087