diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-11-10 13:32:59 -0800 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-11-16 07:47:10 -0800 |
commit | 21a5b3c6b19a8b8972ccdd55389be28a8b7c9180 (patch) | |
tree | 4c96bbe4405cab9ac87cc9afd5d782705039f270 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | f4115d46599464a49a3055d33d499d97ac81fccb (diff) | |
download | lwn-21a5b3c6b19a8b8972ccdd55389be28a8b7c9180.tar.gz lwn-21a5b3c6b19a8b8972ccdd55389be28a8b7c9180.zip |
iwlagn: use SKU information in the EEPROM
EEPROM contain the SKU information for the device, use it.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index d97691261ace..59af06d3511c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c @@ -4134,6 +4134,10 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) if (err) goto out_free_eeprom; + err = iwl_eeprom_check_sku(priv); + if (err) + goto out_free_eeprom; + /* extract MAC Address */ iwl_eeprom_get_mac(priv, priv->addresses[0].addr); IWL_DEBUG_INFO(priv, "MAC address: %pM\n", priv->addresses[0].addr); |