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 <[email protected]>
> 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 <[email protected]>

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: [email protected]

Reply via email to