mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
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>
This commit is contained in:
parent
587b5e8269
commit
0a58351854
@ -203,13 +203,11 @@ 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 = dss_initialize_debugfs();
|
||||
if (r)
|
||||
@ -240,7 +238,6 @@ static int omap_dss_probe(struct platform_device *pdev)
|
||||
err_register:
|
||||
dss_uninitialize_debugfs();
|
||||
err_debugfs:
|
||||
if (cpu_is_omap34xx())
|
||||
dsi_uninit_platform_driver();
|
||||
err_dsi:
|
||||
venc_uninit_platform_driver();
|
||||
@ -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();
|
||||
}
|
||||
|
||||
dss_uninit_platform_driver();
|
||||
|
||||
dss_uninit_overlays(pdev);
|
||||
|
Loading…
Reference in New Issue
Block a user