summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-01-05 12:39:36 +0530
committerPatrick Georgi <patrick@coreboot.org>2022-01-05 08:32:51 +0000
commiteb14a979f9447da09c5203d83376157e418a8bec (patch)
treebd1606963c45c54b3bd6f6ba4f7a0f87f145d51f
parentc045b099e460899a89c85727dda84a77e62fa072 (diff)
mb/google/herobrine: Initialize `pins` to fix the compilation issue
Fix compilation issue introduced with commit 8b63dac0 (google/herobrine: configure gpio to detect board ID) by initialising the gpio pins. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I084fec777b56f402efb3b04a1d358cd5b0891846 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60784 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Reviewed-by: Patrick Georgi <patrick@coreboot.org>
-rw-r--r--src/mainboard/google/herobrine/boardid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/herobrine/boardid.c b/src/mainboard/google/herobrine/boardid.c
index ad90dd9143..07ea362c84 100644
--- a/src/mainboard/google/herobrine/boardid.c
+++ b/src/mainboard/google/herobrine/boardid.c
@@ -10,7 +10,7 @@
uint32_t board_id(void)
{
static uint32_t id = UNDEFINED_STRAPPING_ID;
- gpio_t pins[3];
+ gpio_t pins[3] = { 0 };
if (CONFIG(BOARD_GOOGLE_HEROBRINE)) {
pins[2] = GPIO(75);
pins[1] = GPIO(74);