summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorPhinex Hung <phinex@realtek.com>2023-03-21 09:02:23 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-03-21 17:45:33 +0300
commit2315332efcbe7124252f080e03b57d3d2f1f4771 (patch)
tree899f36013cf9f26e6e77c6da089ccaec65b05da3 /tools/perf/scripts/python/check-perf-trace.py
parent2b91c4a870c9830eaf95e744454c9c218cccb736 (diff)
downloadlinux-2315332efcbe7124252f080e03b57d3d2f1f4771.tar.xz
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 <phinex@realtek.com> Link: https://lore.kernel.org/r/20230321060224.3819-1-phinex@realtek.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions