aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_device.c
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-09-17 03:42:28 -0400
committerDave Airlie <airlied@redhat.com>2009-09-18 02:04:10 -0400
commit5e6dde7ec2e72f49ff749204efc03a59478d7d34 (patch)
tree9eaa09a484cb09c598a32f16f00765b4f9c65c47 /drivers/gpu/drm/radeon/radeon_device.c
parent445282db9e815e7f5e82761c3c971dc9ea988d85 (diff)
drm/radeon/kms: Move radeon_get_clock_info() call out of radeon_clocks_init().
Someone on IRC reported problems after commit 95a8f1bf4f48b434c9f839ab5a0773f66b39d7c6 ('drm/radeon/kms: Move radeon_clocks_init() call back after getting VRAM info.'). And indeed, at least some ASIC vram_info hooks use the clock info obtained by radeon_get_clock_info(). So, move that call out of radeon_clocks_init(), ahead of the radeon_vram_info() call. [airlied - fixup missing r600/rv770 calls] Signed-off-by: Michel Dänzer <daenzer@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com> drm/radeon/kms: fix get clock info calls for r600/rv770 init path. These were missed when it got split out. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_device.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
index 0b5014c2ae7f..8a40c616b534 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -386,7 +386,6 @@ int radeon_clocks_init(struct radeon_device *rdev)
386{ 386{
387 int r; 387 int r;
388 388
389 radeon_get_clock_info(rdev->ddev);
390 r = radeon_static_clocks_init(rdev->ddev); 389 r = radeon_static_clocks_init(rdev->ddev);
391 if (r) { 390 if (r) {
392 return r; 391 return r;
@@ -617,7 +616,8 @@ int radeon_device_init(struct radeon_device *rdev,
617 radeon_combios_asic_init(rdev->ddev); 616 radeon_combios_asic_init(rdev->ddev);
618 } 617 }
619 } 618 }
620 /* Get vram informations */ 619 /* Get clock & vram information */
620 radeon_get_clock_info(rdev->ddev);
621 radeon_vram_info(rdev); 621 radeon_vram_info(rdev);
622 /* Initialize clocks */ 622 /* Initialize clocks */
623 r = radeon_clocks_init(rdev); 623 r = radeon_clocks_init(rdev);