summaryrefslogtreecommitdiff
path: root/src/drivers/intel
diff options
context:
space:
mode:
authorNico Huber <nico.h@gmx.de>2020-03-21 19:09:45 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-24 16:46:40 +0000
commitbed7ad9cd300b387eb2c92d54cac836a80fd0385 (patch)
tree76d242f8c99b0361824e2f3b85d39055436931ac /src/drivers/intel
parentc0be4107606c4aeb41fb238a5ef31339b27e5da0 (diff)
downloadcoreboot-bed7ad9cd300b387eb2c92d54cac836a80fd0385.tar.xz
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>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r--src/drivers/intel/gma/acpi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drivers/intel/gma/acpi.c b/src/drivers/intel/gma/acpi.c
index 3ec8527e6f..677414612a 100644
--- a/src/drivers/intel/gma/acpi.c
+++ b/src/drivers/intel/gma/acpi.c
@@ -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");