diff options
author | Phinex Hung <[email protected]> | 2023-03-21 14:02:23 +0800 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2023-03-21 07:45:33 -0700 |
commit | 2315332efcbe7124252f080e03b57d3d2f1f4771 (patch) | |
tree | 899f36013cf9f26e6e77c6da089ccaec65b05da3 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 2b91c4a870c9830eaf95e744454c9c218cccb736 (diff) |
hwmon: fix potential sensor registration fail if of_node is missing
It is not sufficient to check of_node in current device.
In some cases, this would cause the sensor registration to fail.
This patch looks for device's ancestors to find a valid of_node if any.
Fixes: d560168b5d0f ("hwmon: (core) New hwmon registration API")
Signed-off-by: Phinex Hung <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions