gianfar: Fix thinko in gfar_set_rx_stash_index()
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Tue, 10 Nov 2009 14:11:07 +0000 (14:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Nov 2009 03:03:34 +0000 (19:03 -0800)
We obviously want to write a modified 'temp' value back to the
register, not the saved IRQ flags.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar_sysfs.c

index 3724835d2856c95dc4ab71efe21dd7d4a19747a3..b31c9c8876e6d93725150a19c126f569e59dbd0b 100644 (file)
@@ -186,7 +186,7 @@ static ssize_t gfar_set_rx_stash_index(struct device *dev,
        temp = gfar_read(&regs->attreli);
        temp &= ~ATTRELI_EI_MASK;
        temp |= ATTRELI_EI(index);
-       gfar_write(&regs->attreli, flags);
+       gfar_write(&regs->attreli, temp);
 
 out:
        unlock_rx_qs(priv);