aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/p54pci.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-21 22:02:23 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:09:07 -0800
commit8160c031491015299afacb95a1c1113ccbfefe54 (patch)
treebdcf60ff2542dbafc8a0b9bb6d267d556772ba11 /drivers/net/wireless/p54pci.h
parent184a3b2c517531faac80b0d74c423dd26038cfd2 (diff)
p54pci: endianness annotations and fixes
->ring_control_dma is dma_addr_t, needs conversion to little-endian before __raw_writel()... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54pci.h')
-rw-r--r--drivers/net/wireless/p54pci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54pci.h b/drivers/net/wireless/p54pci.h
index 52feb597dc4..5bedd7af385 100644
--- a/drivers/net/wireless/p54pci.h
+++ b/drivers/net/wireless/p54pci.h
@@ -85,8 +85,8 @@ struct p54p_ring_control {
struct p54p_desc tx_mgmt[4];
} __attribute__ ((packed));
-#define P54P_READ(r) __raw_readl(&priv->map->r)
-#define P54P_WRITE(r, val) __raw_writel((__force u32)(val), &priv->map->r)
+#define P54P_READ(r) (__force __le32)__raw_readl(&priv->map->r)
+#define P54P_WRITE(r, val) __raw_writel((__force u32)(__le32)(val), &priv->map->r)
struct p54p_priv {
struct p54_common common;