From: Tomi Valkeinen Date: Tue, 5 Mar 2013 15:11:16 +0000 (+0200) Subject: OMAPDSS: DSI remove unneeded clk source setup code X-Git-Tag: upstream/snapshot3+hdmi~5059^2~24^2~17^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ce9e33c0f6abc4203f25f5fc287bf072de32513;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git OMAPDSS: DSI remove unneeded clk source setup code We always use the same clock sources for DSI, so let's remove the unnecessary clock source fields from dsi_data. Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index e8f5bdb2..110a505 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -269,10 +269,6 @@ struct dsi_data { struct dispc_clock_info user_dispc_cinfo; struct dsi_clock_info user_dsi_cinfo; - enum omap_dss_clk_source user_dispc_fclk_src; - enum omap_dss_clk_source user_lcd_clk_src; - enum omap_dss_clk_source user_dsi_fclk_src; - struct dsi_clock_info current_cinfo; bool vdds_dsi_enabled; @@ -4327,18 +4323,6 @@ static int dsi_set_clocks(struct omap_dss_device *dssdev, dsi->user_dispc_cinfo.lck_div = dispc_cinfo.lck_div; dsi->user_dispc_cinfo.pck_div = dispc_cinfo.pck_div; - dsi->user_dispc_fclk_src = OMAP_DSS_CLK_SRC_FCK; - - dsi->user_lcd_clk_src = - dsi->module_id == 0 ? - OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC : - OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC; - - dsi->user_dsi_fclk_src = - dsi->module_id == 0 ? - OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI : - OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI; - return 0; err: return r; @@ -4635,7 +4619,9 @@ static int dsi_display_init_dispc(struct platform_device *dsidev, struct dsi_data *dsi = dsi_get_dsidrv_data(dsidev); int r; - dss_select_lcd_clk_source(mgr->id, dsi->user_lcd_clk_src); + dss_select_lcd_clk_source(mgr->id, dsi->module_id == 0 ? + OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC : + OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC); if (dsi->mode == OMAP_DSS_DSI_CMD_MODE) { dsi->timings.hsw = 1; @@ -4741,7 +4727,9 @@ static int dsi_display_init_dsi(struct platform_device *dsidev) if (r) goto err1; - dss_select_dsi_clk_source(dsi->module_id, dsi->user_dsi_fclk_src); + dss_select_dsi_clk_source(dsi->module_id, dsi->module_id == 0 ? + OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI : + OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI); DSSDBG("PLL OK\n");