Simon Glass 11c341b118 gpio: Avoid using an invalid ofnode
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@chromium.org>
Fixes: 5fc7cf8c8e2 ("gpio: add gpio-hog support")
Reviewed-by: Heiko Schocher <hs@denx.de>
2023-07-14 12:54:50 -04:00
..
2022-01-19 18:11:34 +01:00
2023-04-06 14:50:03 +02:00
2023-04-06 14:50:03 +02:00
2022-12-05 16:07:13 -05:00
2021-07-14 16:47:56 -04:00
2022-07-26 11:29:00 +02:00
2023-04-06 14:50:03 +02:00
2022-02-28 11:59:35 +05:30