[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>
This commit is contained in:
Michael Wu
2007-09-24 18:10:25 -04:00
committed by David S. Miller
parent 0d282764eb
commit f6ac0adf54
2 changed files with 22 additions and 26 deletions

View File

@@ -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