From: Simon Glass Date: Mon, 15 Mar 2021 05:00:01 +0000 (+1300) Subject: x86: coral: Free the ACPI GPIOs after using them X-Git-Tag: v2021.10~246^2~3^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80814f4d0e47522e1b1797d461308797a8a5d246;p=platform%2Fkernel%2Fu-boot.git x86: coral: Free the ACPI GPIOs after using them These GPIOs are needed later if Chromium OS verified boot is running, so free them after use. Signed-off-by: Simon Glass --- diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c index f9fb3f1..b255bf6 100644 --- a/board/google/chromebook_coral/coral.c +++ b/board/google/chromebook_coral/coral.c @@ -63,6 +63,8 @@ int chromeos_get_gpio(const struct udevice *dev, const char *prop, } info->flags = desc.flags & GPIOD_ACTIVE_LOW ? CROS_GPIO_ACTIVE_LOW : CROS_GPIO_ACTIVE_HIGH; + if (!ret) + dm_gpio_free(desc.dev, &desc); return 0; }