Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150273
b: refs/heads/master
c: 4312143
h: refs/heads/master
i:
  150271: ea7db28
v: v3
  • Loading branch information
Abhijeet Kolekar authored and John W. Linville committed May 11, 2009
1 parent 7984e82 commit 65297cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9906a07e1607e86957ac8780c35a9acf425c4c95
refs/heads/master: 43121432e2d3a9018c40e820b1e44f3f180aa0d6
12 changes: 5 additions & 7 deletions trunk/drivers/net/wireless/iwlwifi/iwl-3945.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,11 @@ static void iwl3945_nic_config(struct iwl_priv *priv)

spin_lock_irqsave(&priv->lock, flags);

/* Determine HW type */
pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID, &rev_id);

IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);

if (rev_id & PCI_CFG_REV_ID_BIT_RTP)
IWL_DEBUG_INFO(priv, "RTP type \n");
else if (rev_id & PCI_CFG_REV_ID_BIT_BASIC_SKU) {
Expand Down Expand Up @@ -1163,7 +1168,6 @@ static void iwl3945_nic_config(struct iwl_priv *priv)

int iwl3945_hw_nic_init(struct iwl_priv *priv)
{
u8 rev_id;
int rc;
unsigned long flags;
struct iwl_rx_queue *rxq = &priv->rxq;
Expand All @@ -1172,12 +1176,6 @@ int iwl3945_hw_nic_init(struct iwl_priv *priv)
priv->cfg->ops->lib->apm_ops.init(priv);
spin_unlock_irqrestore(&priv->lock, flags);

/* Determine HW type */
rc = pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID, &rev_id);
if (rc)
return rc;
IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);

rc = priv->cfg->ops->lib->apm_ops.set_pwr_src(priv, IWL_PWR_SRC_VMAIN);
if (rc)
return rc;
Expand Down

0 comments on commit 65297cc

Please sign in to comment.