diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-12-18 21:37:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:56 -0500 |
commit | a3139c5956702c9ff957ac9fe2d902de355b063e (patch) | |
tree | 50df5afc7b5867b13421c6be19ff1e020c18c745 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 40b8ec0bfa2d96c9feae2bc1596e9b427c77b8da (diff) |
iwl3945: Remove DRV_NAME dependenies
As DRV_NAME is defined in 2 different header files, including both is not
possible.
This patch defines this constant from iwl3945-base.c and iwl-agn.c. It also
redefines the IWL_ERROR and IWL_WARNING macros to use dev_printk, as the
IWL_DEBUG_* macros do.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Acked-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 1e5aadd9e6a..24e906f75ea 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -44,6 +44,8 @@ | |||
44 | 44 | ||
45 | #include <asm/div64.h> | 45 | #include <asm/div64.h> |
46 | 46 | ||
47 | #define DRV_NAME "iwlagn" | ||
48 | |||
47 | #include "iwl-eeprom.h" | 49 | #include "iwl-eeprom.h" |
48 | #include "iwl-dev.h" | 50 | #include "iwl-dev.h" |
49 | #include "iwl-core.h" | 51 | #include "iwl-core.h" |
@@ -61,9 +63,7 @@ | |||
61 | 63 | ||
62 | /* | 64 | /* |
63 | * module name, copyright, version, etc. | 65 | * module name, copyright, version, etc. |
64 | * NOTE: DRV_NAME is defined in iwlwifi.h for use by iwl-debug.h and printk | ||
65 | */ | 66 | */ |
66 | |||
67 | #define DRV_DESCRIPTION "Intel(R) Wireless WiFi Link AGN driver for Linux" | 67 | #define DRV_DESCRIPTION "Intel(R) Wireless WiFi Link AGN driver for Linux" |
68 | 68 | ||
69 | #ifdef CONFIG_IWLWIFI_DEBUG | 69 | #ifdef CONFIG_IWLWIFI_DEBUG |
@@ -179,7 +179,7 @@ static int iwl_commit_rxon(struct iwl_priv *priv) | |||
179 | * 5000, but will not damage 4965 */ | 179 | * 5000, but will not damage 4965 */ |
180 | priv->staging_rxon.flags |= RXON_FLG_SELF_CTS_EN; | 180 | priv->staging_rxon.flags |= RXON_FLG_SELF_CTS_EN; |
181 | 181 | ||
182 | ret = iwl_agn_check_rxon_cmd(&priv->staging_rxon); | 182 | ret = iwl_agn_check_rxon_cmd(priv); |
183 | if (ret) { | 183 | if (ret) { |
184 | IWL_ERROR("Invalid RXON configuration. Not committing.\n"); | 184 | IWL_ERROR("Invalid RXON configuration. Not committing.\n"); |
185 | return -EINVAL; | 185 | return -EINVAL; |
@@ -4077,13 +4077,14 @@ static int __init iwl_init(void) | |||
4077 | 4077 | ||
4078 | ret = iwlagn_rate_control_register(); | 4078 | ret = iwlagn_rate_control_register(); |
4079 | if (ret) { | 4079 | if (ret) { |
4080 | IWL_ERROR("Unable to register rate control algorithm: %d\n", ret); | 4080 | printk(KERN_ERR DRV_NAME |
4081 | "Unable to register rate control algorithm: %d\n", ret); | ||
4081 | return ret; | 4082 | return ret; |
4082 | } | 4083 | } |
4083 | 4084 | ||
4084 | ret = pci_register_driver(&iwl_driver); | 4085 | ret = pci_register_driver(&iwl_driver); |
4085 | if (ret) { | 4086 | if (ret) { |
4086 | IWL_ERROR("Unable to initialize PCI module\n"); | 4087 | printk(KERN_ERR DRV_NAME "Unable to initialize PCI module\n"); |
4087 | goto error_register; | 4088 | goto error_register; |
4088 | } | 4089 | } |
4089 | 4090 | ||