diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-03-23 09:49:32 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2011-03-23 09:49:32 -0400 |
commit | 1606f87e98f83512762da6dbc992103ae690ff11 (patch) | |
tree | ef099a0f1b37ea6e2e119b7fe84666bd4334d204 /drivers/video/via/lcd.c | |
parent | eb0536c5e2815e3e38ed2b2f31401e114faec016 (diff) |
viafb: call viafb_get_clk_value only in viafb_set_vclock
As no caller is interested in the result call viafb_get_clk_value
directly from viafb_set_vclock to encapsulate the hardware dependend
stuff there.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/via/lcd.c')
-rw-r--r-- | drivers/video/via/lcd.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/video/via/lcd.c b/drivers/video/via/lcd.c index 64bc7e763103..284e681cc22c 100644 --- a/drivers/video/via/lcd.c +++ b/drivers/video/via/lcd.c | |||
@@ -562,7 +562,7 @@ void viafb_lcd_set_mode(struct crt_mode_table *mode_crt_table, | |||
562 | int set_vres = plvds_setting_info->v_active; | 562 | int set_vres = plvds_setting_info->v_active; |
563 | int panel_hres = plvds_setting_info->lcd_panel_hres; | 563 | int panel_hres = plvds_setting_info->lcd_panel_hres; |
564 | int panel_vres = plvds_setting_info->lcd_panel_vres; | 564 | int panel_vres = plvds_setting_info->lcd_panel_vres; |
565 | u32 pll_D_N, clock; | 565 | u32 clock; |
566 | struct display_timing mode_crt_reg, panel_crt_reg; | 566 | struct display_timing mode_crt_reg, panel_crt_reg; |
567 | struct crt_mode_table *panel_crt_table = NULL; | 567 | struct crt_mode_table *panel_crt_table = NULL; |
568 | struct VideoModeTable *vmode_tbl = viafb_get_mode(panel_hres, | 568 | struct VideoModeTable *vmode_tbl = viafb_get_mode(panel_hres, |
@@ -613,10 +613,7 @@ void viafb_lcd_set_mode(struct crt_mode_table *mode_crt_table, | |||
613 | viafb_load_FIFO_reg(set_iga, set_hres, set_vres); | 613 | viafb_load_FIFO_reg(set_iga, set_hres, set_vres); |
614 | 614 | ||
615 | fill_lcd_format(); | 615 | fill_lcd_format(); |
616 | 616 | viafb_set_vclock(clock, set_iga); | |
617 | pll_D_N = viafb_get_clk_value(clock); | ||
618 | DEBUG_MSG(KERN_INFO "PLL=0x%x", pll_D_N); | ||
619 | viafb_set_vclock(pll_D_N, set_iga); | ||
620 | lcd_patch_skew(plvds_setting_info, plvds_chip_info); | 617 | lcd_patch_skew(plvds_setting_info, plvds_chip_info); |
621 | 618 | ||
622 | /* If K8M800, enable LCD Prefetch Mode. */ | 619 | /* If K8M800, enable LCD Prefetch Mode. */ |