diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_dpm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/si_dpm.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c index 05b3dbf585d5..9b8db6046271 100644 --- a/drivers/gpu/drm/amd/amdgpu/si_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/si_dpm.c | |||
@@ -1847,7 +1847,6 @@ static int si_calculate_sclk_params(struct amdgpu_device *adev, | |||
1847 | 1847 | ||
1848 | static void si_thermal_start_smc_fan_control(struct amdgpu_device *adev); | 1848 | static void si_thermal_start_smc_fan_control(struct amdgpu_device *adev); |
1849 | static void si_fan_ctrl_set_default_mode(struct amdgpu_device *adev); | 1849 | static void si_fan_ctrl_set_default_mode(struct amdgpu_device *adev); |
1850 | static void si_dpm_set_dpm_funcs(struct amdgpu_device *adev); | ||
1851 | static void si_dpm_set_irq_funcs(struct amdgpu_device *adev); | 1850 | static void si_dpm_set_irq_funcs(struct amdgpu_device *adev); |
1852 | 1851 | ||
1853 | static struct si_power_info *si_get_pi(struct amdgpu_device *adev) | 1852 | static struct si_power_info *si_get_pi(struct amdgpu_device *adev) |
@@ -7944,7 +7943,6 @@ static int si_dpm_early_init(void *handle) | |||
7944 | 7943 | ||
7945 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; | 7944 | struct amdgpu_device *adev = (struct amdgpu_device *)handle; |
7946 | 7945 | ||
7947 | si_dpm_set_dpm_funcs(adev); | ||
7948 | si_dpm_set_irq_funcs(adev); | 7946 | si_dpm_set_irq_funcs(adev); |
7949 | return 0; | 7947 | return 0; |
7950 | } | 7948 | } |
@@ -8062,7 +8060,7 @@ const struct amd_ip_funcs si_dpm_ip_funcs = { | |||
8062 | .set_powergating_state = si_dpm_set_powergating_state, | 8060 | .set_powergating_state = si_dpm_set_powergating_state, |
8063 | }; | 8061 | }; |
8064 | 8062 | ||
8065 | static const struct amd_pm_funcs si_dpm_funcs = { | 8063 | const struct amd_pm_funcs si_dpm_funcs = { |
8066 | .get_temperature = &si_dpm_get_temp, | 8064 | .get_temperature = &si_dpm_get_temp, |
8067 | .pre_set_power_state = &si_dpm_pre_set_power_state, | 8065 | .pre_set_power_state = &si_dpm_pre_set_power_state, |
8068 | .set_power_state = &si_dpm_set_power_state, | 8066 | .set_power_state = &si_dpm_set_power_state, |
@@ -8083,12 +8081,6 @@ static const struct amd_pm_funcs si_dpm_funcs = { | |||
8083 | .read_sensor = &si_dpm_read_sensor, | 8081 | .read_sensor = &si_dpm_read_sensor, |
8084 | }; | 8082 | }; |
8085 | 8083 | ||
8086 | static void si_dpm_set_dpm_funcs(struct amdgpu_device *adev) | ||
8087 | { | ||
8088 | if (adev->pm.funcs == NULL) | ||
8089 | adev->pm.funcs = &si_dpm_funcs; | ||
8090 | } | ||
8091 | |||
8092 | static const struct amdgpu_irq_src_funcs si_dpm_irq_funcs = { | 8084 | static const struct amdgpu_irq_src_funcs si_dpm_irq_funcs = { |
8093 | .set = si_dpm_set_interrupt_state, | 8085 | .set = si_dpm_set_interrupt_state, |
8094 | .process = si_dpm_process_interrupt, | 8086 | .process = si_dpm_process_interrupt, |