diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-04-23 20:14:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-07 15:02:17 -0400 |
commit | 8614f360bdc7db8d35609a9c771601f1d45539e5 (patch) | |
tree | 9309ba2f774ea22552bafc9f68585ddb3ebce67d /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | b661c8190e91c0baeebf813fec7ff8e99e155a54 (diff) |
iwlwifi: check eeprom version in pci probe time
This patch move eeprom version checking into pci probe stage
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 368fc9a9c2b0..c532584b11e6 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -7479,6 +7479,10 @@ static int iwl4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
7479 | IWL_ERROR("Unable to init EEPROM\n"); | 7479 | IWL_ERROR("Unable to init EEPROM\n"); |
7480 | goto out_iounmap; | 7480 | goto out_iounmap; |
7481 | } | 7481 | } |
7482 | err = iwl_eeprom_check_version(priv); | ||
7483 | if (err) | ||
7484 | goto out_iounmap; | ||
7485 | |||
7482 | /* MAC Address location in EEPROM same for 3945/4965 */ | 7486 | /* MAC Address location in EEPROM same for 3945/4965 */ |
7483 | iwl_eeprom_get_mac(priv, priv->mac_addr); | 7487 | iwl_eeprom_get_mac(priv, priv->mac_addr); |
7484 | IWL_DEBUG_INFO("MAC address: %s\n", print_mac(mac, priv->mac_addr)); | 7488 | IWL_DEBUG_INFO("MAC address: %s\n", print_mac(mac, priv->mac_addr)); |