Re: [PATCH 06/40] gpio: Avoid using an invalid ofnode

2023-06-01 Thread Heiko Schocher
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. > > Signe

[PATCH 06/40] gpio: Avoid using an invalid ofnode

2023-06-01 Thread Simon Glass
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 Fixes: 5fc7cf8c8e2 ("gpio: add gpio-hog sup