summaryrefslogtreecommitdiff
path: root/drivers/staging/brcm80211/brcmsmac/dma.h
diff options
context:
space:
mode:
authorRoland Vossen <rvossen@broadcom.com>2011-08-08 15:58:22 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-23 13:00:02 -0700
commit98ff86e37d1d1c3ebcaa124dfa9a900eb0e1fa77 (patch)
tree6e3dfa425758b479943aaf846b4e569f42bed923 /drivers/staging/brcm80211/brcmsmac/dma.h
parent9204df650808cf6cf1d84e027c3fec66d7d845d2 (diff)
staging: brcm80211: fixed build issue for big endian platforms
Driver now builds for big endian mips platform, possibly also for other big endian platforms. A change was made to the R_REG and W_REG macro's. These macro's perform an xor (^) operation for endianess swap purposes. Gcc complained because an xor operation is not allowed on a pointer type. Fixed this by casting the pointer to an unsigned long. Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/brcm80211/brcmsmac/dma.h')
-rw-r--r--drivers/staging/brcm80211/brcmsmac/dma.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/brcm80211/brcmsmac/dma.h b/drivers/staging/brcm80211/brcmsmac/dma.h
index 3ff109fa3e7e..334f2eb3036b 100644
--- a/drivers/staging/brcm80211/brcmsmac/dma.h
+++ b/drivers/staging/brcm80211/brcmsmac/dma.h
@@ -17,6 +17,7 @@
#ifndef _BRCM_DMA_H_
#define _BRCM_DMA_H_
+#include <linux/delay.h>
#include "types.h" /* forward structure declarations */
/* DMA structure: