Commit d00ce09040d3100e2c7998ef56db62c2d20d9ee3
1 parent
aff4f86448
Exists in
master
and in
54 other branches
USB: fix more GCC 4.2.x aliasing warnings
Signed-off-by: Wolfgang Denk <wd@denx.de> Acked-by: Markus Klotzbuecher <mk@denx.de>
Showing 3 changed files with 6 additions and 6 deletions Side-by-side Diff
cpu/arm920t/s3c24x0/usb_ohci.c
... | ... | @@ -58,8 +58,8 @@ |
58 | 58 | #define OHCI_CONTROL_INIT \ |
59 | 59 | (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE |
60 | 60 | |
61 | -#define readl(a) (*((vu_long *)(a))) | |
62 | -#define writel(a, b) (*((vu_long *)(b)) = ((vu_long)a)) | |
61 | +#define readl(a) (*((volatile u32 *)(a))) | |
62 | +#define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a)) | |
63 | 63 | |
64 | 64 | #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) |
65 | 65 |
cpu/mpc5xxx/usb_ohci.c
... | ... | @@ -56,8 +56,8 @@ |
56 | 56 | #define OHCI_CONTROL_INIT \ |
57 | 57 | (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE |
58 | 58 | |
59 | -#define readl(a) (*((vu_long *)(a))) | |
60 | -#define writel(a, b) (*((vu_long *)(b)) = ((vu_long)a)) | |
59 | +#define readl(a) (*((volatile u32 *)(a))) | |
60 | +#define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a)) | |
61 | 61 | |
62 | 62 | #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) |
63 | 63 |
cpu/ppc4xx/usb_ohci.c
... | ... | @@ -56,8 +56,8 @@ |
56 | 56 | #define OHCI_CONTROL_INIT \ |
57 | 57 | (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE |
58 | 58 | |
59 | -#define readl(a) (*((vu_long *)(a))) | |
60 | -#define writel(a, b) (*((vu_long *)(b)) = ((vu_long)a)) | |
59 | +#define readl(a) (*((volatile u32 *)(a))) | |
60 | +#define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a)) | |
61 | 61 | |
62 | 62 | #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) |
63 | 63 |