]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc5xxx/usb_ohci.c
USB: fix more GCC 4.2.x aliasing warnings
[u-boot] / cpu / mpc5xxx / usb_ohci.c
index c774da36d16fffca657dba30912624fe5af51f2c..2ad12b2a25931d616e076635de199594669f4da8 100644 (file)
@@ -56,8 +56,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; })