Skip to content

Commit

Permalink
drm/radeon/kms: Move radeon_clocks_init() call back after getting VRA…
Browse files Browse the repository at this point in the history
…M info.

It may indirectly call radeon_set_clock_gating() which relies on the VRAM info.

Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
  • Loading branch information
Michel Dänzer authored and Dave Airlie committed Sep 15, 2009
1 parent fb1fbf8 commit 95a8f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/radeon/radeon_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,13 @@ int radeon_device_init(struct radeon_device *rdev,
radeon_combios_asic_init(rdev->ddev);
}
}
/* Get vram informations */
radeon_vram_info(rdev);
/* Initialize clocks */
r = radeon_clocks_init(rdev);
if (r) {
return r;
}
/* Get vram informations */
radeon_vram_info(rdev);

/* Initialize memory controller (also test AGP) */
r = radeon_mc_init(rdev);
Expand Down

0 comments on commit 95a8f1b

Please sign in to comment.