drivers/intel/gma/acpi: Let the compiler initialize counters[]

TEST=Booted ThinkPad X201s, backlight control still works.

Change-Id: I8ff3493be4dc8d640a511358a5324eb73eb35db9
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39729
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Nico Huber 2020-03-21 19:09:45 +01:00 committed by Patrick Georgi
parent c0be410760
commit bed7ad9cd3
1 changed files with 1 additions and 3 deletions

View File

@ -22,9 +22,7 @@ drivers_intel_gma_displays_ssdt_generate(const struct i915_gpu_controller_info *
{
size_t i;
const char *names[] = { "UNK", "VGA", "TV", "DVI", "LCD" };
int counters[ARRAY_SIZE(names)];
memset(counters, 0, sizeof(counters));
int counters[ARRAY_SIZE(names)] = { 0 };
acpigen_write_scope("\\_SB.PCI0.GFX0");