aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2008-12-18 21:37:09 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:56 -0500
commita3139c5956702c9ff957ac9fe2d902de355b063e (patch)
tree50df5afc7b5867b13421c6be19ff1e020c18c745 /drivers/net/wireless/iwlwifi/iwl-core.c
parent40b8ec0bfa2d96c9feae2bc1596e9b427c77b8da (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-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 313976b29dab..327d1bd4ff0f 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -170,7 +170,8 @@ struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg,
170 struct ieee80211_hw *hw = 170 struct ieee80211_hw *hw =
171 ieee80211_alloc_hw(sizeof(struct iwl_priv), hw_ops); 171 ieee80211_alloc_hw(sizeof(struct iwl_priv), hw_ops);
172 if (hw == NULL) { 172 if (hw == NULL) {
173 IWL_ERROR("Can not allocate network device\n"); 173 printk(KERN_ERR "%s: Can not allocate network device\n",
174 cfg->name);
174 goto out; 175 goto out;
175 } 176 }
176 177
@@ -510,18 +511,18 @@ static int iwlcore_init_geos(struct iwl_priv *priv)
510 511
511 if ((priv->bands[IEEE80211_BAND_5GHZ].n_channels == 0) && 512 if ((priv->bands[IEEE80211_BAND_5GHZ].n_channels == 0) &&
512 priv->cfg->sku & IWL_SKU_A) { 513 priv->cfg->sku & IWL_SKU_A) {
513 printk(KERN_INFO DRV_NAME 514 dev_printk(KERN_INFO, &(priv->hw->wiphy->dev),
514 ": Incorrectly detected BG card as ABG. Please send " 515 "Incorrectly detected BG card as ABG. Please send "
515 "your PCI ID 0x%04X:0x%04X to maintainer.\n", 516 "your PCI ID 0x%04X:0x%04X to maintainer.\n",
516 priv->pci_dev->device, priv->pci_dev->subsystem_device); 517 priv->pci_dev->device,
518 priv->pci_dev->subsystem_device);
517 priv->cfg->sku &= ~IWL_SKU_A; 519 priv->cfg->sku &= ~IWL_SKU_A;
518 } 520 }
519 521
520 printk(KERN_INFO DRV_NAME 522 dev_printk(KERN_INFO, &(priv->hw->wiphy->dev),
521 ": Tunable channels: %d 802.11bg, %d 802.11a channels\n", 523 "Tunable channels: %d 802.11bg, %d 802.11a channels\n",
522 priv->bands[IEEE80211_BAND_2GHZ].n_channels, 524 priv->bands[IEEE80211_BAND_2GHZ].n_channels,
523 priv->bands[IEEE80211_BAND_5GHZ].n_channels); 525 priv->bands[IEEE80211_BAND_5GHZ].n_channels);
524
525 526
526 set_bit(STATUS_GEO_CONFIGURED, &priv->status); 527 set_bit(STATUS_GEO_CONFIGURED, &priv->status);
527 528