summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2008-10-31 11:26:44 -0500
committerWolfgang Denk <wd@denx.de>2008-11-02 16:39:31 +0100
commit0829323073c505556ed5f5073f91adb504584d45 (patch)
tree2b3f525e0c19704f07a9a30f8bbc2c222e555ba5
parenta80b21d5127583171d6e9bc7f722947641898012 (diff)
downloadu-boot-imx-0829323073c505556ed5f5073f91adb504584d45.zip
u-boot-imx-0829323073c505556ed5f5073f91adb504584d45.tar.gz
u-boot-imx-0829323073c505556ed5f5073f91adb504584d45.tar.bz2
ppc: Fix compile warnings when !CONFIG_OF_LIBFDT
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
-rw-r--r--lib_ppc/bootm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c
index a436f75..e03d763 100644
--- a/lib_ppc/bootm.c
+++ b/lib_ppc/bootm.c
@@ -224,12 +224,13 @@ static int boot_bd_t_linux(bootm_headers_t *images)
static int boot_body_linux(bootm_headers_t *images)
{
- ulong rd_len, bootmap_base = getenv_bootm_low();
- ulong of_size = images->ft_len;
+ ulong rd_len;
struct lmb *lmb = &images->lmb;
ulong *initrd_start = &images->initrd_start;
ulong *initrd_end = &images->initrd_end;
#if defined(CONFIG_OF_LIBFDT)
+ ulong bootmap_base = getenv_bootm_low();
+ ulong of_size = images->ft_len;
char **of_flat_tree = &images->ft_addr;
#endif