[U-Boot] [PATCH 1/3] nds32: drop bi_enetaddr from global data

Nothing is using this, so punt it from the gd. Seems to just be a copy & paste wart from the initial port.
Signed-off-by: Mike Frysinger vapier@gentoo.org --- arch/nds32/include/asm/u-boot.h | 1 - 1 file changed, 1 deletion(-)
diff --git a/arch/nds32/include/asm/u-boot.h b/arch/nds32/include/asm/u-boot.h index eabbf38..b533fea 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 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 */ unsigned long bi_memstart; /* start of DRAM memory */

Fixes the build-time warning: board.c: In function 'board_init_r': board.c:304: warning: unused variable 's'
Signed-off-by: Mike Frysinger vapier@gentoo.org --- arch/nds32/lib/board.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c index 7121313..f5de266 100644 --- a/arch/nds32/lib/board.c +++ b/arch/nds32/lib/board.c @@ -301,7 +301,6 @@ void board_init_f(ulong bootflag) */ void board_init_r(gd_t *id, ulong dest_addr) { - char *s; bd_t *bd; ulong malloc_start;

Hi Mike,
2012/8/7 Mike Frysinger vapier@gentoo.org:
Fixes the build-time warning: board.c: In function 'board_init_r': board.c:304: warning: unused variable 's'
Signed-off-by: Mike Frysinger vapier@gentoo.org
Applied to u-boot-nds32.git/master Thanks.

Fixes the build-time warning: board.c: At top level: board.c:106: warning: 'pmu_init' defined but not used
This makes the ifdef logic at the call site match the logic at the function definition.
Signed-off-by: Mike Frysinger vapier@gentoo.org --- arch/nds32/lib/board.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/nds32/lib/board.c b/arch/nds32/lib/board.c index f5de266..2164a50 100644 --- a/arch/nds32/lib/board.c +++ b/arch/nds32/lib/board.c @@ -103,6 +103,7 @@ static int nds32_pci_init(void) #endif /* CONFIG_CMD_PCI || CONFIG_PCI */
#if defined(CONFIG_PMU) || defined(CONFIG_PCU) +#ifndef CONFIG_SKIP_LOWLEVEL_INIT static int pmu_init(void) { #if defined(CONFIG_FTPMU010_POWER) @@ -115,6 +116,7 @@ static int pmu_init(void) return 0; } #endif +#endif
/* * Breathe some life into the board...

Hi Mike,
2012/8/7 Mike Frysinger vapier@gentoo.org:
Fixes the build-time warning: board.c: At top level: board.c:106: warning: 'pmu_init' defined but not used
This makes the ifdef logic at the call site match the logic at the function definition.
Signed-off-by: Mike Frysinger vapier@gentoo.org
Applied to u-boot-nds32.git/master Thanks.

Hi Mike,
2012/8/7 Mike Frysinger vapier@gentoo.org:
Nothing is using this, so punt it from the gd. Seems to just be a copy & paste wart from the initial port.
Signed-off-by: Mike Frysinger vapier@gentoo.org
arch/nds32/include/asm/u-boot.h | 1 - 1 file changed, 1 deletion(-)
Applied to u-boot-nds32.git/master Thanks.
participants (2)
-
Macpaul Lin
-
Mike Frysinger