Skip to content
Snippets Groups Projects
Commit f957576c authored by Markus Klotzbuecher's avatar Markus Klotzbuecher Committed by Wolfgang Denk
Browse files

USB: fix those pesky aliasing warnings issued by gcc-4.2


Signed-off-by: default avatarMarkus Klotzbuecher <mk@denx.de>
Signed-off-by: default avatarDetlev Zundel <dzu@denx.de>
parent 89cdab78
No related branches found
No related tags found
No related merge requests found
...@@ -86,11 +86,11 @@ ...@@ -86,11 +86,11 @@
* e.g. PCI controllers need this * e.g. PCI controllers need this
*/ */
#ifdef CFG_OHCI_SWAP_REG_ACCESS #ifdef CFG_OHCI_SWAP_REG_ACCESS
# define readl(a) __swap_32(*((vu_long *)(a))) # define readl(a) __swap_32(*((volatile u32 *)(a)))
# define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a)) # define writel(a, b) (*((volatile u32 *)(b)) = __swap_32((volatile u32)a))
#else #else
# define readl(a) (*((vu_long *)(a))) # define readl(a) (*((volatile u32 *)(a)))
# define writel(a, b) (*((vu_long *)(b)) = ((vu_long)a)) # define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a))
#endif /* CFG_OHCI_SWAP_REG_ACCESS */ #endif /* CFG_OHCI_SWAP_REG_ACCESS */
#define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment