drm/radeon/kms: dynamically allocate power state space
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 2 Feb 2011 23:42:03 +0000 (18:42 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Feb 2011 23:46:35 +0000 (09:46 +1000)
commit0975b16274bad1f0bd5c5fd6ab759c5a9ee11949
tree522e6af52e285c3616976709f868aa07e38c8cbe
parent87364760de5d631390c478fcbac8db1b926e0adf
drm/radeon/kms: dynamically allocate power state space

We previously used a static array, but some new systems
had more states then we had array space, so dynamically
allocate space based on the number of states in the vbios.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=33851

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_atombios.c
drivers/gpu/drm/radeon/radeon_combios.c
drivers/gpu/drm/radeon/radeon_pm.c