]> git.dujemihanovic.xyz Git - u-boot.git/commit
acpi: Correct reset handling in acpi_device_add_power_res()
authorSimon Glass <sjg@chromium.org>
Wed, 4 Nov 2020 16:57:30 +0000 (09:57 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 6 Nov 2020 01:51:30 +0000 (09:51 +0800)
commitbe1cee11b26880c385d9ce1d84792403a59f8855
treed9af39c218ae3da65f62eb108722780ffa81de2f
parentdd30c5bb574aba55e99284dbdfe0d6033bf44d7f
acpi: Correct reset handling in acpi_device_add_power_res()

If there is no reset line, this still emits ACPI code for the reset GPIO.
Fix it by updating the check.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
lib/acpi/acpi_device.c