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
..
2021-02-02 15:33:42 -05:00
2022-10-21 16:06:13 -04:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2022-09-19 09:51:04 +03:00
2023-04-28 01:30:24 +01:00
2020-12-13 16:51:09 -07:00
2020-12-13 08:00:25 -07:00
2020-12-13 08:00:25 -07:00
2022-01-16 08:31:03 -05:00
2020-12-13 16:51:09 -07:00
2021-01-05 12:24:40 -07:00
2022-10-06 21:05:17 -04:00
2022-04-05 15:13:13 +02:00
2022-04-19 14:51:11 -04:00
2023-06-12 13:24:31 +02:00
2023-05-16 22:24:24 +02:00
2021-02-02 15:33:42 -05:00
2023-07-14 12:54:50 -04:00
2020-12-13 08:00:25 -07:00
2021-09-30 08:08:56 -04:00
2020-12-13 16:51:08 -07:00
2022-05-23 11:37:58 +02:00
2021-02-02 15:33:42 -05:00
2021-09-25 09:46:15 -06:00
2021-02-02 15:33:42 -05:00
2022-01-19 18:11:34 +01:00
2023-04-06 14:50:03 +02:00
2018-05-07 09:34:12 -04:00
2021-01-05 12:24:40 -07:00
2023-04-06 14:50:03 +02:00
2021-10-19 11:25:24 -04:00
2021-08-22 10:53:14 +02:00
2023-02-11 08:47:58 +01:00
2021-03-05 10:25:43 +05:30
2020-12-13 16:51:09 -07:00
2023-05-06 17:28:18 +08:00
2022-08-26 10:55:46 -04:00
2021-01-24 21:39:26 +01:00
2021-01-05 12:24:40 -07:00
2022-07-28 15:17:46 +02:00
2022-12-05 16:07:13 -05:00
2021-09-25 09:46:15 -06:00
2021-07-14 16:47:56 -04:00
2023-06-01 12:32:03 -04:00
2021-02-02 15:33:42 -05:00
2022-05-03 18:33:29 -04:00
2021-09-25 09:46:15 -06:00
2022-07-26 11:29:00 +02:00
2022-12-05 16:06:08 -05:00
2021-07-23 07:13:25 -04:00
2021-02-02 15:33:42 -05:00
2023-02-10 12:50:00 -05:00
2023-04-06 14:50:03 +02:00
2023-04-21 15:16:01 +08:00
2021-10-31 11:25:39 -04:00
2021-09-25 09:46:15 -06:00
2022-09-15 09:55:30 -04:00
2023-04-07 17:13:28 +02:00
2021-10-20 10:59:09 +08:00
2022-02-28 11:59:35 +05:30
2022-05-10 13:54:48 +02:00
2022-05-10 13:54:48 +02:00
2023-04-28 01:30:24 +01:00
2022-12-05 16:06:08 -05:00
2020-05-18 21:19:23 -04:00
2021-01-05 12:24:40 -07:00
2023-05-06 17:28:18 +08:00
2022-09-26 10:04:37 +02:00
2021-02-02 15:33:42 -05:00
2023-05-06 17:28:18 +08:00
2020-12-13 16:51:09 -07:00
2023-01-27 08:42:47 +01:00