diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-06-26 00:39:28 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-06-29 23:03:40 +0200 |
commit | e03b4d296b27790de3b25edd32784d20538240d8 (patch) | |
tree | 25666d54fac97e1bbdfe9cc43fc8ecb11065b3dc /board | |
parent | 9fb3b5085787baad8a133e347ad12c5b3a022e98 (diff) | |
download | u-boot-imx-e03b4d296b27790de3b25edd32784d20538240d8.zip u-boot-imx-e03b4d296b27790de3b25edd32784d20538240d8.tar.gz u-boot-imx-e03b4d296b27790de3b25edd32784d20538240d8.tar.bz2 |
Fix compiler warnings for EVB64260, P3G4 and ZUMA
Fix following warnings:
$ ./MAKEALL EVB64260 P3G4 ZUMA
Configuring for EVB64260 board...
mpsc.c: In function 'mpsc_putchar_early':
mpsc.c:121: warning: dereferencing type-punned pointer will break strict-aliasing rules
mpsc.c:127: warning: dereferencing type-punned pointer will break strict-aliasing rules
...
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/evb64260/mpsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/evb64260/mpsc.c b/board/evb64260/mpsc.c index 8c4a4c8..3164967 100644 --- a/board/evb64260/mpsc.c +++ b/board/evb64260/mpsc.c @@ -88,7 +88,7 @@ static void galsdma_enable_rx(void); /* GT64240A errata: cant read MPSC/BRG registers... so make mirrors in ram for read/modify write */ -#define MIRROR_HACK ((struct _tag_mirror_hack *)&(gd->mirror_hack)) +#define MIRROR_HACK ((struct _tag_mirror_hack *)&(gd->mirror_hack[0])) #define GT_REG_WRITE_MIRROR_G(a,d) {MIRROR_HACK->a ## _M = d; GT_REG_WRITE(a,d);} #define GTREGREAD_MIRROR_G(a) (MIRROR_HACK->a ## _M) |