aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/niu.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-11-12 16:41:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-12 16:41:27 -0800
commitb5f1f5557fd83fe92bdf2d2e80e431d655464d6c (patch)
treef4aad6546f5d2292395e116c43f45f57f6decaaa /drivers/net/niu.c
parent45a9524a61267a60aef3c273b97284e93b15f4d7 (diff)
parentb2af2c1d3e4ddeea9d02c46d0df0c322cc7b7061 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: bnx2: fix poll_controller to pass proper structures and check all rx queues niu: Fix readq implementation when architecture does not provide one. hostap: pad the skb->cb usage in lieu of a proper fix rtl8187 : support for Sitecom WL-168 0001 v4 mac80211: fix notify_mac function rtl8187: Add Abocom USB ID net: put_cmsg_compat + SO_TIMESTAMP[NS]: use same name for value as caller tcp_htcp: last_cong bug fix [netdrvr] smc911x: fix for driver resume (and compilation warning) RDMA/cxgb3: deadlock in iw_cxgb3 can cause hang when configuring interface. cxgb3 - Limit multiqueue setting to msi-x cxgb3 - eeprom read fixes myri10ge: fix stop/go ordering even more
Diffstat (limited to 'drivers/net/niu.c')
-rw-r--r--drivers/net/niu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c
index 9acb5d70a3a..d8463b1c3df 100644
--- a/drivers/net/niu.c
+++ b/drivers/net/niu.c
@@ -51,8 +51,7 @@ MODULE_VERSION(DRV_MODULE_VERSION);
#ifndef readq
static u64 readq(void __iomem *reg)
{
- return (((u64)readl(reg + 0x4UL) << 32) |
- (u64)readl(reg));
+ return ((u64) readl(reg)) | (((u64) readl(reg + 4UL)) << 32);
}
static void writeq(u64 val, void __iomem *reg)