diff options
Diffstat (limited to 'drivers/video/fbdev/omap2/dss/dss.c')
-rw-r--r-- | drivers/video/fbdev/omap2/dss/dss.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dss.c b/drivers/video/fbdev/omap2/dss/dss.c index 7f978b6a34e8..35601ab232e3 100644 --- a/drivers/video/fbdev/omap2/dss/dss.c +++ b/drivers/video/fbdev/omap2/dss/dss.c | |||
@@ -111,6 +111,14 @@ static const char * const dss_generic_clk_source_names[] = { | |||
111 | [OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI] = "DSI_PLL2_HSDIV_DSI", | 111 | [OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI] = "DSI_PLL2_HSDIV_DSI", |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static bool dss_initialized; | ||
115 | |||
116 | bool omapdss_is_initialized(void) | ||
117 | { | ||
118 | return dss_initialized; | ||
119 | } | ||
120 | EXPORT_SYMBOL(omapdss_is_initialized); | ||
121 | |||
114 | static inline void dss_write_reg(const struct dss_reg idx, u32 val) | 122 | static inline void dss_write_reg(const struct dss_reg idx, u32 val) |
115 | { | 123 | { |
116 | __raw_writel(val, dss.base + idx.idx); | 124 | __raw_writel(val, dss.base + idx.idx); |
@@ -1141,6 +1149,8 @@ static int __init omap_dsshw_probe(struct platform_device *pdev) | |||
1141 | 1149 | ||
1142 | pm_set_vt_switch(0); | 1150 | pm_set_vt_switch(0); |
1143 | 1151 | ||
1152 | dss_initialized = true; | ||
1153 | |||
1144 | return 0; | 1154 | return 0; |
1145 | 1155 | ||
1146 | err_pll_init: | 1156 | err_pll_init: |
@@ -1158,6 +1168,8 @@ err_setup_clocks: | |||
1158 | 1168 | ||
1159 | static int __exit omap_dsshw_remove(struct platform_device *pdev) | 1169 | static int __exit omap_dsshw_remove(struct platform_device *pdev) |
1160 | { | 1170 | { |
1171 | dss_initialized = false; | ||
1172 | |||
1161 | if (dss.video1_pll) | 1173 | if (dss.video1_pll) |
1162 | dss_video_pll_uninit(dss.video1_pll); | 1174 | dss_video_pll_uninit(dss.video1_pll); |
1163 | 1175 | ||