From d00ce09040d3100e2c7998ef56db62c2d20d9ee3 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Fri, 25 Apr 2008 12:44:08 +0200 Subject: USB: fix more GCC 4.2.x aliasing warnings Signed-off-by: Wolfgang Denk Acked-by: Markus Klotzbuecher --- cpu/arm920t/s3c24x0/usb_ohci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/arm920t/s3c24x0') diff --git a/cpu/arm920t/s3c24x0/usb_ohci.c b/cpu/arm920t/s3c24x0/usb_ohci.c index 4075f2e..96e43d0 100644 --- a/cpu/arm920t/s3c24x0/usb_ohci.c +++ b/cpu/arm920t/s3c24x0/usb_ohci.c @@ -58,8 +58,8 @@ #define OHCI_CONTROL_INIT \ (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE -#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)) #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) -- cgit v1.1