[package] acx-mac80211: add io endianness patch
[openwrt/svn-archive/archive.git] / package / acx-mac80211 / patches / 010-io-endianness.patch
1 diff --git a/pci.c b/pci.c
2 index 4f5c0a7..160f3e0 100644
3 --- a/pci.c
4 +++ b/pci.c
5 @@ -273,10 +273,10 @@ static void acxpci_log_txbuffer(acx_device_t * adev)
6 */
7
8 /* OS I/O routines *always* be endianness-clean but having them doesn't hurt */
9 -#define acx_readl(v) le32_to_cpu(readl((v)))
10 -#define acx_readw(v) le16_to_cpu(readw((v)))
11 -#define acx_writew(v,r) writew(le16_to_cpu((v)), r)
12 -#define acx_writel(v,r) writel(le32_to_cpu((v)), r)
13 +#define acx_readl(v) readl((v))
14 +#define acx_readw(v) readw((v))
15 +#define acx_writew(v,r) writew((v), r)
16 +#define acx_writel(v,r) writel((v), r)
17
18 INLINE_IO u32 read_reg32(acx_device_t * adev, unsigned int offset)
19 {