summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-12 20:27:55 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 07:24:10 +0100
commit6cba6b9209723bde06251bd996fda4ffce705d3f (patch)
treee8889d9ae7db403b1f833631f4b637766ac5aa23 /arch
parent258b1357c6b324b0a45ca0c1cf3dfd1ef1b4c5c4 (diff)
downloadu-boot-imx-6cba6b9209723bde06251bd996fda4ffce705d3f.zip
u-boot-imx-6cba6b9209723bde06251bd996fda4ffce705d3f.tar.gz
u-boot-imx-6cba6b9209723bde06251bd996fda4ffce705d3f.tar.bz2
x86: Fix a warning with gcc 4.4.4
This warning appears even though it seems that the compiler could work it out. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/cpu/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index a4e639d..3583619 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -238,6 +238,7 @@ static void identify_cpu(struct cpu_device_id *cpu)
int i;
vendor_name[0] = '\0'; /* Unset */
+ cpu->device = 0; /* fix gcc 4.4.4 warning */
/* Find the id and vendor_name */
if (!has_cpuid()) {