mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
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>
This commit is contained in:
parent
89cdab788f
commit
f957576cb5
1 changed files with 4 additions and 4 deletions
|
@ -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; })
|
||||
|
|
Loading…
Reference in a new issue