diff options
author | 2023-03-21 14:02:23 +0800 | |
---|---|---|
committer | 2023-03-21 07:45:33 -0700 | |
commit | 2315332efcbe7124252f080e03b57d3d2f1f4771 (patch) | |
tree | 899f36013cf9f26e6e77c6da089ccaec65b05da3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | hwmon: (peci/cputemp) Fix miscalculated DTS for SKX (diff) | |
download | wireguard-linux-2315332efcbe7124252f080e03b57d3d2f1f4771.tar.xz wireguard-linux-2315332efcbe7124252f080e03b57d3d2f1f4771.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions