drm/amdgpu/pm: remove duplicate check
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2020 19:04:44 +0000 (15:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Aug 2020 22:22:24 +0000 (18:22 -0400)
FAMILY_KV is APUs and we already check for APUs.

Reviewed-by: Evan Quan <evan.quan@amd.com>
Acked-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c

index 5fc6a9a..f2e7065 100644 (file)
@@ -3311,8 +3311,7 @@ static umode_t hwmon_attributes_visible(struct kobject *kobj,
        }
 
        if (((adev->flags & AMD_IS_APU) ||
-            adev->family == AMDGPU_FAMILY_SI ||        /* not implemented yet */
-            adev->family == AMDGPU_FAMILY_KV) &&       /* not implemented yet */
+            adev->family == AMDGPU_FAMILY_SI) &&       /* not implemented yet */
            (attr == &sensor_dev_attr_power1_average.dev_attr.attr ||
             attr == &sensor_dev_attr_power1_cap_max.dev_attr.attr ||
             attr == &sensor_dev_attr_power1_cap_min.dev_attr.attr||