projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceeb502
)
drm/radeon/kms: fix use of index before proper initialisation.
author
Dave Airlie
<airlied@redhat.com>
Mon, 12 Oct 2009 04:21:19 +0000
(14:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 12 Oct 2009 04:21:42 +0000
(14:21 +1000)
With the adjust table introduction, we need to fill out index
before getting the table version.
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_crtc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/radeon/atombios_crtc.c
b/drivers/gpu/drm/radeon/atombios_crtc.c
index 7522af1b9e4615012b125163b4240c66dd1a3718..3409aa3cbee49c0af36d89e63549eb998b35fe7a 100644
(file)
--- a/
drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/
drivers/gpu/drm/radeon/atombios_crtc.c
@@
-454,6
+454,7
@@
void atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode *mode)
radeon_compute_pll(pll, adjusted_clock, &pll_clock, &fb_div, &frac_fb_div,
&ref_div, &post_div, pll_flags);
+ index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
atom_parse_cmd_header(rdev->mode_info.atom_context, index, &frev,
&crev);
@@
-513,7
+514,6
@@
void atombios_crtc_set_pll(struct drm_crtc *crtc, struct drm_display_mode *mode)
}
printk("executing set pll\n");
- index = GetIndexIntoMasterTable(COMMAND, SetPixelClock);
atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args);
}