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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Feb 2022 11:56:31 +0000 (12:56 +0100)
commitdcd1c46634697d200c7012d5047302355dce098f
tree42d854ee79f2e541c9a52de6017f60c9eff90036
parent4b24ef1d03cf56008184f458be780da0125fc244
drm/amd/pm: fix hwmon node of power1_label create issue

[ Upstream commit a8b1e8636a3252daa729762b2e3cc9015cc91a5c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/amdgpu_pm.c