diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2011-11-04 10:09:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-11-11 14:16:05 +0000 |
commit | 8f3f1c9a22a6420e28c2d3eff59b832893bc8efc (patch) | |
tree | fff750d9ccf699b3607ca473791c9e5820e1a7c5 /drivers/gpu/drm/radeon/radeon.h | |
parent | bbe26ffe9ffd231de7cf88c4361f1939858e8594 (diff) | |
download | blackbird-op-linux-8f3f1c9a22a6420e28c2d3eff59b832893bc8efc.tar.gz blackbird-op-linux-8f3f1c9a22a6420e28c2d3eff59b832893bc8efc.zip |
drm/radeon/kms/pm: switch to dynamically allocating clock mode array
On newer chips the number of clock modes per power state varies.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 41f7cd26515b..fc5a1d642cb5 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -784,8 +784,7 @@ struct radeon_pm_clock_info { struct radeon_power_state { enum radeon_pm_state_type type; - /* XXX: use a define for num clock modes */ - struct radeon_pm_clock_info clock_info[8]; + struct radeon_pm_clock_info *clock_info; /* number of valid clock modes in this power state */ int num_clock_modes; struct radeon_pm_clock_info *default_clock_mode; |