drm/amd/pm: fix hwmon node of power1_label create issue
authorYang Wang <KevinYang.Wang@amd.com>
Tue, 8 Feb 2022 06:23:55 +0000 (14:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Feb 2022 21:57:51 +0000 (16:57 -0500)
commitde7fbd020d959708282ac0916be3e5498086d9aa
treeee47bb7c15b0aad29f03c8fd8680d3c13c57cfd7
parent40f1dc5223ae9b98458124bbeabbabc74c2bccf6
drm/amd/pm: fix hwmon node of power1_label create issue

it will cause hwmon node of power1_label is not created.

v2:
the hwmon node of "power1_label" is always needed for all ASICs.
and the patch will remove ASIC type check for "power1_label".

Fixes: ae07970a0621d6 ("drm/amd/pm: add support for hwmon control of slow and fast PPT limit on vangogh")

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c