diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/omap2/dss/core.c | 19 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 17 |
2 files changed, 16 insertions, 20 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index acefe50209fc..8cfedae98211 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c | |||
@@ -191,12 +191,6 @@ static int omap_dss_probe(struct platform_device *pdev) | |||
191 | goto err_rfbi; | 191 | goto err_rfbi; |
192 | } | 192 | } |
193 | 193 | ||
194 | r = dpi_init(); | ||
195 | if (r) { | ||
196 | DSSERR("Failed to initialize dpi\n"); | ||
197 | goto err_dpi; | ||
198 | } | ||
199 | |||
200 | r = dispc_init_platform_driver(); | 194 | r = dispc_init_platform_driver(); |
201 | if (r) { | 195 | if (r) { |
202 | DSSERR("Failed to initialize dispc platform driver\n"); | 196 | DSSERR("Failed to initialize dispc platform driver\n"); |
@@ -210,12 +204,6 @@ static int omap_dss_probe(struct platform_device *pdev) | |||
210 | } | 204 | } |
211 | 205 | ||
212 | if (cpu_is_omap34xx()) { | 206 | if (cpu_is_omap34xx()) { |
213 | r = sdi_init(); | ||
214 | if (r) { | ||
215 | DSSERR("Failed to initialize SDI\n"); | ||
216 | goto err_sdi; | ||
217 | } | ||
218 | |||
219 | r = dsi_init_platform_driver(); | 207 | r = dsi_init_platform_driver(); |
220 | if (r) { | 208 | if (r) { |
221 | DSSERR("Failed to initialize DSI platform driver\n"); | 209 | DSSERR("Failed to initialize DSI platform driver\n"); |
@@ -255,15 +243,10 @@ err_debugfs: | |||
255 | if (cpu_is_omap34xx()) | 243 | if (cpu_is_omap34xx()) |
256 | dsi_uninit_platform_driver(); | 244 | dsi_uninit_platform_driver(); |
257 | err_dsi: | 245 | err_dsi: |
258 | if (cpu_is_omap34xx()) | ||
259 | sdi_exit(); | ||
260 | err_sdi: | ||
261 | venc_uninit_platform_driver(); | 246 | venc_uninit_platform_driver(); |
262 | err_venc: | 247 | err_venc: |
263 | dispc_uninit_platform_driver(); | 248 | dispc_uninit_platform_driver(); |
264 | err_dispc: | 249 | err_dispc: |
265 | dpi_exit(); | ||
266 | err_dpi: | ||
267 | rfbi_uninit_platform_driver(); | 250 | rfbi_uninit_platform_driver(); |
268 | err_rfbi: | 251 | err_rfbi: |
269 | dss_uninit_platform_driver(); | 252 | dss_uninit_platform_driver(); |
@@ -281,11 +264,9 @@ static int omap_dss_remove(struct platform_device *pdev) | |||
281 | 264 | ||
282 | venc_uninit_platform_driver(); | 265 | venc_uninit_platform_driver(); |
283 | dispc_uninit_platform_driver(); | 266 | dispc_uninit_platform_driver(); |
284 | dpi_exit(); | ||
285 | rfbi_uninit_platform_driver(); | 267 | rfbi_uninit_platform_driver(); |
286 | if (cpu_is_omap34xx()) { | 268 | if (cpu_is_omap34xx()) { |
287 | dsi_uninit_platform_driver(); | 269 | dsi_uninit_platform_driver(); |
288 | sdi_exit(); | ||
289 | } | 270 | } |
290 | 271 | ||
291 | dss_uninit_platform_driver(); | 272 | dss_uninit_platform_driver(); |
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 4025a14c5bc1..e5da050bcf85 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -970,9 +970,24 @@ static int omap_dsshw_probe(struct platform_device *pdev) | |||
970 | goto err_dss; | 970 | goto err_dss; |
971 | } | 971 | } |
972 | 972 | ||
973 | r = dpi_init(); | ||
974 | if (r) { | ||
975 | DSSERR("Failed to initialize DPI\n"); | ||
976 | goto err_dpi; | ||
977 | } | ||
978 | |||
979 | r = sdi_init(); | ||
980 | if (r) { | ||
981 | DSSERR("Failed to initialize SDI\n"); | ||
982 | goto err_sdi; | ||
983 | } | ||
984 | |||
973 | dss_clk_disable_all_no_ctx(); | 985 | dss_clk_disable_all_no_ctx(); |
974 | return 0; | 986 | return 0; |
975 | 987 | err_sdi: | |
988 | dpi_exit(); | ||
989 | err_dpi: | ||
990 | dss_exit(); | ||
976 | err_dss: | 991 | err_dss: |
977 | dss_clk_disable_all_no_ctx(); | 992 | dss_clk_disable_all_no_ctx(); |
978 | dss_put_clocks(); | 993 | dss_put_clocks(); |