mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-17 12:41:32 +00:00
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>
This commit is contained in:
parent
b09c74f66d
commit
80814f4d0e
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue