goto err_rfbi;
}
- r = dpi_init();
- if (r) {
- DSSERR("Failed to initialize dpi\n");
- goto err_dpi;
- }
-
r = dispc_init_platform_driver();
if (r) {
DSSERR("Failed to initialize dispc platform driver\n");
}
if (cpu_is_omap34xx()) {
- r = sdi_init();
- if (r) {
- DSSERR("Failed to initialize SDI\n");
- goto err_sdi;
- }
-
r = dsi_init_platform_driver();
if (r) {
DSSERR("Failed to initialize DSI platform driver\n");
if (cpu_is_omap34xx())
dsi_uninit_platform_driver();
err_dsi:
- if (cpu_is_omap34xx())
- sdi_exit();
-err_sdi:
venc_uninit_platform_driver();
err_venc:
dispc_uninit_platform_driver();
err_dispc:
- dpi_exit();
-err_dpi:
rfbi_uninit_platform_driver();
err_rfbi:
dss_uninit_platform_driver();
venc_uninit_platform_driver();
dispc_uninit_platform_driver();
- dpi_exit();
rfbi_uninit_platform_driver();
if (cpu_is_omap34xx()) {
dsi_uninit_platform_driver();
- sdi_exit();
}
dss_uninit_platform_driver();
goto err_dss;
}
+ r = dpi_init();
+ if (r) {
+ DSSERR("Failed to initialize DPI\n");
+ goto err_dpi;
+ }
+
+ r = sdi_init();
+ if (r) {
+ DSSERR("Failed to initialize SDI\n");
+ goto err_sdi;
+ }
+
dss_clk_disable_all_no_ctx();
return 0;
-
+err_sdi:
+ dpi_exit();
+err_dpi:
+ dss_exit();
err_dss:
dss_clk_disable_all_no_ctx();
dss_put_clocks();