aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-02 12:48:35 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-03 10:36:23 +0200
commit1884eed11e1c9b6d0a3a56e459628801a5983f1a (patch)
tree3f93c8f4cc38931f4c02e9b1d11133ef2483dbb2
parenteb6218d8bb437a660297b9c84735b40cc764fe5a (diff)
downloadexperimental-1884eed11e1c9b6d0a3a56e459628801a5983f1a.tar.gz
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: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/core.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
index 8cfedae9821..c2f930bf284 100644
--- a/drivers/video/omap2/dss/core.c
+++ b/drivers/video/omap2/dss/core.c
@@ -203,12 +203,10 @@ static int omap_dss_probe(struct platform_device *pdev)
goto err_venc;
}
- if (cpu_is_omap34xx()) {
- r = dsi_init_platform_driver();
- if (r) {
- DSSERR("Failed to initialize DSI platform driver\n");
- goto err_dsi;
- }
+ r = dsi_init_platform_driver();
+ if (r) {
+ DSSERR("Failed to initialize DSI platform driver\n");
+ goto err_dsi;
}
r = dss_initialize_debugfs();
@@ -240,8 +238,7 @@ static int omap_dss_probe(struct platform_device *pdev)
err_register:
dss_uninitialize_debugfs();
err_debugfs:
- if (cpu_is_omap34xx())
- dsi_uninit_platform_driver();
+ dsi_uninit_platform_driver();
err_dsi:
venc_uninit_platform_driver();
err_venc:
@@ -265,10 +262,7 @@ static int omap_dss_remove(struct platform_device *pdev)
venc_uninit_platform_driver();
dispc_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_overlays(pdev);