summaryrefslogtreecommitdiffstats
path: root/drivers/net/gianfar_sysfs.c
diff options
context:
space:
mode:
authorAnton Vorontsov <avorontsov@ru.mvista.com>2009-11-10 15:11:07 +0100
committerDavid S. Miller <davem@davemloft.net>2009-11-12 04:03:34 +0100
commit499428ed28d800eb5cf25889bb1e026637d99dfc (patch)
tree9a879405e204436d61f8e7aa5730e6352afe4691 /drivers/net/gianfar_sysfs.c
parentgianfar: Fix build with CONFIG_PM=y (diff)
downloadlinux-499428ed28d800eb5cf25889bb1e026637d99dfc.tar.xz
linux-499428ed28d800eb5cf25889bb1e026637d99dfc.zip
gianfar: Fix thinko in gfar_set_rx_stash_index()
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>
Diffstat (limited to 'drivers/net/gianfar_sysfs.c')
-rw-r--r--drivers/net/gianfar_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gianfar_sysfs.c b/drivers/net/gianfar_sysfs.c
index 3724835d2856..b31c9c8876e6 100644
--- a/drivers/net/gianfar_sysfs.c
+++ b/drivers/net/gianfar_sysfs.c
@@ -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);