iwlagn: remove rev_id
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2011 16:42:09 +0000 (09:42 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 7 Apr 2011 19:51:40 +0000 (15:51 -0400)
The rev_id variable is only printed, we
don't need to store it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-dev.h

index c3306ba..08bad17 100644 (file)
@@ -3687,8 +3687,10 @@ struct ieee80211_ops iwlagn_hw_ops = {
 
 static u32 iwl_hw_detect(struct iwl_priv *priv)
 {
-       priv->rev_id = priv->pci_dev->revision;
-       IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", priv->rev_id);
+       u8 rev_id;
+
+       pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID, &rev_id);
+       IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", rev_id);
        return _iwl_read32(priv, CSR_HW_REV);
 }
 
index 1779d60..54b20d8 100644 (file)
@@ -1253,7 +1253,6 @@ struct iwl_priv {
 
        /* pci hardware address support */
        void __iomem *hw_base;
-       u8   rev_id;
 
        /* microcode/device supports multiple contexts */
        u8 valid_contexts;