Commit bb5abf9f authored by Alex Deucher's avatar Alex Deucher

drm/radeon/dpm: remove unnecessary checks in dpm_init

No need to check rdev->pm.num_power_states; this is a vestige
of the old pm code.
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent dd66d20e
...@@ -1192,7 +1192,6 @@ static int radeon_pm_init_dpm(struct radeon_device *rdev) ...@@ -1192,7 +1192,6 @@ static int radeon_pm_init_dpm(struct radeon_device *rdev)
rdev->pm.dpm_enabled = true; rdev->pm.dpm_enabled = true;
radeon_pm_compute_clocks(rdev); radeon_pm_compute_clocks(rdev);
if (rdev->pm.num_power_states > 1) {
ret = device_create_file(rdev->dev, &dev_attr_power_dpm_state); ret = device_create_file(rdev->dev, &dev_attr_power_dpm_state);
if (ret) if (ret)
DRM_ERROR("failed to create device file for dpm state\n"); DRM_ERROR("failed to create device file for dpm state\n");
...@@ -1212,7 +1211,6 @@ static int radeon_pm_init_dpm(struct radeon_device *rdev) ...@@ -1212,7 +1211,6 @@ static int radeon_pm_init_dpm(struct radeon_device *rdev)
} }
DRM_INFO("radeon: dpm initialized\n"); DRM_INFO("radeon: dpm initialized\n");
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment