summaryrefslogtreecommitdiff
path: root/board/nx823/nx823.c
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2009-03-26 07:33:59 +0100
committerWolfgang Denk <wd@denx.de>2009-03-27 20:23:32 +0100
commit76756e41cde0a617e781a604cc47dfaef63697cd (patch)
treeee420c570683bba74d8987244fff05d979bfdd9f /board/nx823/nx823.c
parent81005758bc62cfb50683fb1958bfef571b1e9752 (diff)
downloadu-boot-imx-76756e41cde0a617e781a604cc47dfaef63697cd.zip
u-boot-imx-76756e41cde0a617e781a604cc47dfaef63697cd.tar.gz
u-boot-imx-76756e41cde0a617e781a604cc47dfaef63697cd.tar.bz2
ppc: cleanup compiler errors/warnings
Current u-boot top of tree builds with warnings/errors for the following boards: ads5121 cpci5200 mecp5200 v38b IAD210 MBX MBX860T NX823 RPXClassic debris PN62 following patch solves this. Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/nx823/nx823.c')
-rw-r--r--board/nx823/nx823.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/nx823/nx823.c b/board/nx823/nx823.c
index 6ec29dc..7867fff 100644
--- a/board/nx823/nx823.c
+++ b/board/nx823/nx823.c
@@ -27,6 +27,7 @@
#include <common.h>
#include <malloc.h>
#include <mpc8xx.h>
+#include <net.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -366,7 +367,7 @@ int misc_init_r (void)
char tmp[50];
uchar ethaddr[6];
bd_t *bd = gd->bd;
- ulong my_sernum = bd->bi_sernum;
+ ulong *my_sernum = (unsigned long *)&bd->bi_sernum;
/* load unique serial number */
for (i = 0; i < 8; ++i)