[PATCH 06/40] gpio: Avoid using an invalid ofnode
Heiko Schocher
hs at denx.de
Fri Jun 2 07:09:56 CEST 2023
Hello Simon,
On 01.06.23 18:22, Simon Glass wrote:
> Devices do not necessarily have nodes attached to them, since they can be
> created from platdata. In SPL a devicetree may in fact not exist at all.
>
> Check the node before using it. This avoids failure when OF_CHECKS is
> enabled.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Fixes: 5fc7cf8c8e2 ("gpio: add gpio-hog support")
> ---
>
> drivers/gpio/gpio-uclass.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks!
Reviewed-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list