From: Alex Deucher Date: Wed, 3 Jul 2013 15:18:08 +0000 (-0400) Subject: drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e631227f698f39969eb476d297f3ac65b43b51a5;p=openwrt%2Fstaging%2Fblogic.git drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table() Signed-off-by: Alex Deucher --- 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