drm/radeon: fix endian bug in radeon_atom_get_mclk_range_table()
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jul 2013 15:18:08 +0000 (11:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jul 2013 21:37:28 +0000 (17:37 -0400)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_atombios.c

index 70d8687e60e0efb220528833e222dad64ae152ba..b1777d10d0b5e1cdca7d8f20d4b05903b76cf7f4 100644 (file)
@@ -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