mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
arch/powerpc/cpu/mpc8xxx/ddr/options.c: Fix GCC 4.6 build warning
Fix: options.c: In function 'populate_memctl_options': options.c:486:28: warning: variable 'pdodt' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
9cc971b90f
commit
667bc17e07
@ -483,7 +483,9 @@ unsigned int populate_memctl_options(int all_DIMMs_registered,
|
|||||||
unsigned int i;
|
unsigned int i;
|
||||||
char buffer[HWCONFIG_BUFFER_SIZE];
|
char buffer[HWCONFIG_BUFFER_SIZE];
|
||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
|
#if defined(CONFIG_FSL_DDR3) || defined(CONFIG_FSL_DDR2)
|
||||||
const struct dynamic_odt *pdodt = odt_unknown;
|
const struct dynamic_odt *pdodt = odt_unknown;
|
||||||
|
#endif
|
||||||
ulong ddr_freq;
|
ulong ddr_freq;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -493,6 +495,7 @@ unsigned int populate_memctl_options(int all_DIMMs_registered,
|
|||||||
if (getenv_f("hwconfig", buffer, sizeof(buffer)) > 0)
|
if (getenv_f("hwconfig", buffer, sizeof(buffer)) > 0)
|
||||||
buf = buffer;
|
buf = buffer;
|
||||||
|
|
||||||
|
#if defined(CONFIG_FSL_DDR3) || defined(CONFIG_FSL_DDR2)
|
||||||
/* Chip select options. */
|
/* Chip select options. */
|
||||||
if (CONFIG_DIMM_SLOTS_PER_CTLR == 1) {
|
if (CONFIG_DIMM_SLOTS_PER_CTLR == 1) {
|
||||||
switch (pdimm[0].n_ranks) {
|
switch (pdimm[0].n_ranks) {
|
||||||
@ -546,6 +549,7 @@ unsigned int populate_memctl_options(int all_DIMMs_registered,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Pick chip-select local options. */
|
/* Pick chip-select local options. */
|
||||||
for (i = 0; i < CONFIG_CHIP_SELECTS_PER_CTRL; i++) {
|
for (i = 0; i < CONFIG_CHIP_SELECTS_PER_CTRL; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user