diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2007-12-22 03:02:23 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 23:09:07 (GMT) |
commit | 8160c031491015299afacb95a1c1113ccbfefe54 (patch) | |
tree | bdcf60ff2542dbafc8a0b9bb6d267d556772ba11 /drivers/net/wireless/p54pci.h | |
parent | 184a3b2c517531faac80b0d74c423dd26038cfd2 (diff) | |
download | linux-fsl-qoriq-8160c031491015299afacb95a1c1113ccbfefe54.tar.xz |
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.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54pci.h b/drivers/net/wireless/p54pci.h index 52feb59..5bedd7a 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; |