summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_atombios.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-07-03 11:18:08 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-07-03 17:37:28 -0400
commite631227f698f39969eb476d297f3ac65b43b51a5 (patch)
tree0f209b9b7babedeb37ab9e71c8107c7b4b75c28b /drivers/gpu/drm/radeon/radeon_atombios.c
parentbf0936e196ec21b604106578043d4c14831f99e7 (diff)
downloadblackbird-op-linux-e631227f698f39969eb476d297f3ac65b43b51a5.tar.gz
blackbird-op-linux-e631227f698f39969eb476d297f3ac65b43b51a5.zip
drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table()
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_atombios.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index 70d8687e60e0..b1777d10d0b5 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -3639,7 +3639,7 @@ int radeon_atom_get_mclk_range_table(struct radeon_device *rdev,
p = (u8 *)vram_module->asMemTiming;
for (i = 0; i < mclk_range_table->num_entries; i++) {
format = (ATOM_MEMORY_TIMING_FORMAT *)p;
- mclk_range_table->mclk[i] = format->ulClkRange;
+ mclk_range_table->mclk[i] = le32_to_cpu(format->ulClkRange);
p += mem_timing_size;
}
} else
OpenPOWER on IntegriCloud