]> err.no Git - linux-2.6/commitdiff
atl1: fix bad ioread address
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Feb 2007 02:13:39 +0000 (20:13 -0600)
committerJeff Garzik <jeff@garzik.org>
Sat, 17 Feb 2007 20:16:08 +0000 (15:16 -0500)
An ioread32 statement reads the wrong address.  Fix it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Chris Snook <csnook@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/atl1/atl1_hw.c

index 08b2d785469d13ae524b60d3092b676900980da5..e28707a2b4826adbff2e5d1fde2dfe1888f90225 100644 (file)
@@ -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));
 }