Commit e631227f authored by Alex Deucher's avatar Alex Deucher

drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table()

Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bf0936e1
...@@ -3639,7 +3639,7 @@ int radeon_atom_get_mclk_range_table(struct radeon_device *rdev, ...@@ -3639,7 +3639,7 @@ int radeon_atom_get_mclk_range_table(struct radeon_device *rdev,
p = (u8 *)vram_module->asMemTiming; p = (u8 *)vram_module->asMemTiming;
for (i = 0; i < mclk_range_table->num_entries; i++) { for (i = 0; i < mclk_range_table->num_entries; i++) {
format = (ATOM_MEMORY_TIMING_FORMAT *)p; 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; p += mem_timing_size;
} }
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment