diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-04-04 18:53:40 +0000 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2012-05-15 17:32:05 -0500 |
commit | 50a47d0523e8efebe912bef539a77ffd42116451 (patch) | |
tree | 4501fa8c08405a3d9595a252df1ce725e27f3a0b /arch/nds32 | |
parent | e1902ac698194fdf20b473bd2d9c592c45554b72 (diff) | |
download | u-boot-imx-50a47d0523e8efebe912bef539a77ffd42116451.zip u-boot-imx-50a47d0523e8efebe912bef539a77ffd42116451.tar.gz u-boot-imx-50a47d0523e8efebe912bef539a77ffd42116451.tar.bz2 |
net: punt bd->bi_ip_addr
This field gets read in one place (by "bdinfo"), and we can replace
that with getenv("ipaddr"). After all, the bi_ip_addr field is kept
up-to-date implicitly with the value of the ipaddr env var.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'arch/nds32')
-rw-r--r-- | arch/nds32/include/asm/u-boot.h | 1 | ||||
-rw-r--r-- | arch/nds32/lib/board.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/arch/nds32/include/asm/u-boot.h b/arch/nds32/include/asm/u-boot.h index 9a69750..eabbf38 100644 --- a/arch/nds32/include/asm/u-boot.h +++ b/arch/nds32/include/asm/u-boot.h @@ -40,7 +40,6 @@ typedef struct bd_info { int bi_baudrate; /* serial console baudrate */ - unsigned long bi_ip_addr; /* IP Address */ unsigned char bi_enetaddr[6]; /* Ethernet adress */ unsigned long bi_arch_number; /* unique id for this board */ unsigned long bi_boot_params; /* where this board expects params */ diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c index 074aabf..50ea30d 100644 --- a/arch/nds32/lib/board.c +++ b/arch/nds32/lib/board.c @@ -369,9 +369,6 @@ void board_init_r(gd_t *id, ulong dest_addr) nds32_pci_init(); #endif - /* IP Address */ - gd->bd->bi_ip_addr = getenv_IPaddr("ipaddr"); - stdio_init(); /* get the devices list going. */ jumptable_init(); |