aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl4965-base.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-04-23 20:14:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:17 -0400
commit91238714affef7603446207ad03a594d95d2eb9d (patch)
tree533e87b3331e71b7c3d708eecbf48ade3872cc4a /drivers/net/wireless/iwlwifi/iwl4965-base.c
parentfde0db310fd4979e0d8e6ba009975d23cc7e65ac (diff)
iwlwifi: add apm init handler
This patch add apm init handler to iwlcore handler Signed-off-by: Tomas Winkler <tomas.winkler@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/iwl4965-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 1f5e7e6fa687..c837503c1e0a 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -7462,21 +7462,15 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
7462 printk(KERN_INFO DRV_NAME 7462 printk(KERN_INFO DRV_NAME
7463 ": Detected Intel Wireless WiFi Link %s\n", priv->cfg->name); 7463 ": Detected Intel Wireless WiFi Link %s\n", priv->cfg->name);
7464 7464
7465 /***************** 7465 /* amp init */
7466 * 4. Read EEPROM 7466 err = priv->cfg->ops->lib->apm_ops.init(priv);
7467 *****************/
7468 /* nic init */
7469 iwl_set_bit(priv, CSR_GIO_CHICKEN_BITS,
7470 CSR_GIO_CHICKEN_BITS_REG_BIT_DIS_L0S_EXIT_TIMER);
7471
7472 iwl_set_bit(priv, CSR_GP_CNTRL, CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
7473 err = iwl_poll_bit(priv, CSR_GP_CNTRL,
7474 CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY,
7475 CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000);
7476 if (err < 0) { 7467 if (err < 0) {
7477 IWL_DEBUG_INFO("Failed to init the card\n"); 7468 IWL_DEBUG_INFO("Failed to init APMG\n");
7478 goto out_iounmap; 7469 goto out_iounmap;
7479 } 7470 }
7471 /*****************
7472 * 4. Read EEPROM
7473 *****************/
7480 /* Read the EEPROM */ 7474 /* Read the EEPROM */
7481 err = iwl_eeprom_init(priv); 7475 err = iwl_eeprom_init(priv);
7482 if (err) { 7476 if (err) {