summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/adm8211.h
diff options
context:
space:
mode:
authorMichael Wu <flamingice@sourmilk.net>2007-09-25 02:10:25 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-11 03:53:09 +0400
commitf6ac0adf54ed3fc7fa47e66b92defcbdf37b44ab (patch)
tree9a0a07c1de6e0f0cf1ef2963d1e5a0112dc85199 /drivers/net/wireless/adm8211.h
parent0d282764eb82f89395493b5e0541c1e30c985838 (diff)
downloadlinux-f6ac0adf54ed3fc7fa47e66b92defcbdf37b44ab.tar.xz
[PATCH] adm8211: Use revision from pci_dev
No need to load the revision ourselves anymore. Signed-off-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/adm8211.h')
-rw-r--r--drivers/net/wireless/adm8211.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/adm8211.h b/drivers/net/wireless/adm8211.h
index 5991b17c4a7b..ef326fed42e4 100644
--- a/drivers/net/wireless/adm8211.h
+++ b/drivers/net/wireless/adm8211.h
@@ -416,7 +416,7 @@ struct adm8211_desc {
#define TDES1_CONTROL_RBS1 (0x00000fff)
/* SRAM offsets */
-#define ADM8211_SRAM(x) (priv->revid < ADM8211_REV_BA ? \
+#define ADM8211_SRAM(x) (priv->pdev->revision < ADM8211_REV_BA ? \
ADM8211_SRAM_A_ ## x : ADM8211_SRAM_B_ ## x)
#define ADM8211_SRAM_INDIV_KEY 0x0000
@@ -623,8 +623,6 @@ struct adm8211_priv {
struct adm8211_eeprom *eeprom;
size_t eeprom_len;
- u8 revid;
-
u32 nar;
#define ADM8211_TYPE_INTERSIL 0x00