Skip to content

Commit adbc2fe

Browse files
Mythri P Ktomba
authored andcommitted
OMAP4: DSS: HDMI: Call to HDMI module init to register driver.
calling the platform registration of HDMI driver from core during initialization. Signed-off-by: Mythri P K <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent 642e21b commit adbc2fe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/video/omap2/dss/core.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ static int omap_dss_probe(struct platform_device *pdev)
209209
goto err_dsi;
210210
}
211211

212+
r = hdmi_init_platform_driver();
213+
if (r) {
214+
DSSERR("Failed to initialize hdmi\n");
215+
goto err_hdmi;
216+
}
217+
212218
r = dss_initialize_debugfs();
213219
if (r)
214220
goto err_debugfs;
@@ -238,6 +244,8 @@ static int omap_dss_probe(struct platform_device *pdev)
238244
err_register:
239245
dss_uninitialize_debugfs();
240246
err_debugfs:
247+
hdmi_uninit_platform_driver();
248+
err_hdmi:
241249
dsi_uninit_platform_driver();
242250
err_dsi:
243251
venc_uninit_platform_driver();
@@ -263,6 +271,7 @@ static int omap_dss_remove(struct platform_device *pdev)
263271
dispc_uninit_platform_driver();
264272
rfbi_uninit_platform_driver();
265273
dsi_uninit_platform_driver();
274+
hdmi_uninit_platform_driver();
266275
dss_uninit_platform_driver();
267276

268277
dss_uninit_overlays(pdev);

0 commit comments

Comments
 (0)