Skip to contentSkip to conversation

atl1: fix bad ioread address

PATCH In review Jay Cliburn 1 participant 1 message Feb 15, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/6 atl1: fix bad ioread address

From: Al Viro <[email protected]>

An ioread32 statement reads the wrong address. Fix it.

---

 drivers/net/atl1/atl1_hw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/atl1/atl1_hw.c +1 -1
index 08b2d78..e28707a 100644
@@ -357,7 +357,7 @@ void atl1_hash_set(struct atl1_hw *hw, u32 hash_value)
 	 */
 	hash_reg = (hash_value >> 31) & 0x1;
 	hash_bit = (hash_value >> 26) & 0x1F;
-	mta = ioread32((hw + REG_RX_HASH_TABLE) + (hash_reg << 2));
+	mta = ioread32((hw->hw_addr + REG_RX_HASH_TABLE) + (hash_reg << 2));
 	mta |= (1 << hash_bit);
 	iowrite32(mta, (hw->hw_addr + REG_RX_HASH_TABLE) + (hash_reg << 2));
 }