Commit 0a583518 authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAP: DSS2: Remove unneeded cpu_is_xxx checks

cpu_is_omapxxx() was used previously to select the supported interfaces.
Now that the interfaces are platform devices, we no longer need to do
the check when registering the driver. Thus we can just remove the
checks.
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 587b5e82
...@@ -203,12 +203,10 @@ static int omap_dss_probe(struct platform_device *pdev) ...@@ -203,12 +203,10 @@ static int omap_dss_probe(struct platform_device *pdev)
goto err_venc; goto err_venc;
} }
if (cpu_is_omap34xx()) { r = dsi_init_platform_driver();
r = dsi_init_platform_driver(); if (r) {
if (r) { DSSERR("Failed to initialize DSI platform driver\n");
DSSERR("Failed to initialize DSI platform driver\n"); goto err_dsi;
goto err_dsi;
}
} }
r = dss_initialize_debugfs(); r = dss_initialize_debugfs();
...@@ -240,8 +238,7 @@ static int omap_dss_probe(struct platform_device *pdev) ...@@ -240,8 +238,7 @@ static int omap_dss_probe(struct platform_device *pdev)
err_register: err_register:
dss_uninitialize_debugfs(); dss_uninitialize_debugfs();
err_debugfs: err_debugfs:
if (cpu_is_omap34xx()) dsi_uninit_platform_driver();
dsi_uninit_platform_driver();
err_dsi: err_dsi:
venc_uninit_platform_driver(); venc_uninit_platform_driver();
err_venc: err_venc:
...@@ -265,10 +262,7 @@ static int omap_dss_remove(struct platform_device *pdev) ...@@ -265,10 +262,7 @@ static int omap_dss_remove(struct platform_device *pdev)
venc_uninit_platform_driver(); venc_uninit_platform_driver();
dispc_uninit_platform_driver(); dispc_uninit_platform_driver();
rfbi_uninit_platform_driver(); rfbi_uninit_platform_driver();
if (cpu_is_omap34xx()) { dsi_uninit_platform_driver();
dsi_uninit_platform_driver();
}
dss_uninit_platform_driver(); dss_uninit_platform_driver();
dss_uninit_overlays(pdev); dss_uninit_overlays(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment