diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 08:00:01 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 03:59:36 +0300 |
commit | 80814f4d0e47522e1b1797d461308797a8a5d246 (patch) | |
tree | 4966b62164858c5929e64bc6a51cb1d93d86bf65 /board/google | |
parent | b09c74f66d46fac7f25e53a0c06f832cf0638a5c (diff) | |
download | u-boot-80814f4d0e47522e1b1797d461308797a8a5d246.tar.xz |
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 <sjg@chromium.org>
Diffstat (limited to 'board/google')
-rw-r--r-- | board/google/chromebook_coral/coral.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c index f9fb3f163f..b255bf6187 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; } |