summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/btc_dpm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-08-21 10:02:32 -0400
committerChristian König <christian.koenig@amd.com>2014-02-18 16:11:30 +0100
commit82f79cc54b6a67c0b17aff4fb5ed43155ff3f0ea (patch)
tree6e986d77466b1f668cc47ea1f08c2868cedd4fab /drivers/gpu/drm/radeon/btc_dpm.c
parentb59b733397cac70be5b04c60e8810077ac6ca48d (diff)
downloadlinux-82f79cc54b6a67c0b17aff4fb5ed43155ff3f0ea.tar.gz
linux-82f79cc54b6a67c0b17aff4fb5ed43155ff3f0ea.tar.bz2
linux-82f79cc54b6a67c0b17aff4fb5ed43155ff3f0ea.zip
drm/radeon/dpm: move platform caps fetching to a separate function
It's needed by by both the asic specific functions and the extended table parser. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/btc_dpm.c')
-rw-r--r--drivers/gpu/drm/radeon/btc_dpm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/btc_dpm.c b/drivers/gpu/drm/radeon/btc_dpm.c
index ea103ccdf4bd..f81d7ca134db 100644
--- a/drivers/gpu/drm/radeon/btc_dpm.c
+++ b/drivers/gpu/drm/radeon/btc_dpm.c
@@ -2601,6 +2601,10 @@ int btc_dpm_init(struct radeon_device *rdev)
pi->min_vddc_in_table = 0;
pi->max_vddc_in_table = 0;
+ ret = r600_get_platform_caps(rdev);
+ if (ret)
+ return ret;
+
ret = rv7xx_parse_power_table(rdev);
if (ret)
return ret;