summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarkus Klotzbücher <mk@denx.de>2008-04-23 10:53:23 +0200
committerWolfgang Denk <wd@denx.de>2008-04-24 13:30:56 +0200
commitf957576cb53e6cfab412709cfc8db1afd39d21c3 (patch)
tree018cc6075e4d172c649c30a4f7b30d3bc10bc450 /drivers
parent89cdab788f3716b335fefb60b836ebcf975aceab (diff)
downloadu-boot-imx-f957576cb53e6cfab412709cfc8db1afd39d21c3.zip
u-boot-imx-f957576cb53e6cfab412709cfc8db1afd39d21c3.tar.gz
u-boot-imx-f957576cb53e6cfab412709cfc8db1afd39d21c3.tar.bz2
USB: fix those pesky aliasing warnings issued by gcc-4.2
Signed-off-by: Markus Klotzbuecher <mk@denx.de> Signed-off-by: Detlev Zundel <dzu@denx.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/usb_ohci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/usb_ohci.c b/drivers/usb/usb_ohci.c
index 5c201b3..d37a037 100644
--- a/drivers/usb/usb_ohci.c
+++ b/drivers/usb/usb_ohci.c
@@ -86,11 +86,11 @@
* e.g. PCI controllers need this
*/
#ifdef CFG_OHCI_SWAP_REG_ACCESS
-# define readl(a) __swap_32(*((vu_long *)(a)))
-# define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a))
+# define readl(a) __swap_32(*((volatile u32 *)(a)))
+# define writel(a, b) (*((volatile u32 *)(b)) = __swap_32((volatile u32)a))
#else
-# define readl(a) (*((vu_long *)(a)))
-# define writel(a, b) (*((vu_long *)(b)) = ((vu_long)a))
+# define readl(a) (*((volatile u32 *)(a)))
+# define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a))
#endif /* CFG_OHCI_SWAP_REG_ACCESS */
#define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })