Commit ee223b70 authored by Chandrabhanu Mahapatra's avatar Chandrabhanu Mahapatra Committed by Tomi Valkeinen

OMAPDSS: VENC: Remove cpu_is_xxxx checks

OMAP4 checks are removed from VENC to provide it a cleaner interface. These
checks were introduced by patches "HACK: OMAP: DSS2: VENC: disable VENC on OMAP4
to prevent crash" (ba02fa37) by Tomi Valkeinen <tomi.valkeinen@ti.com> and
"OMAPDSS: VENC: fix NULL pointer dereference in DSS2 VENC sysfs debug attr on
OMAP4" (cc1d3e03)  by Danny Kukawka <danny.kukawka@bisect.de> to prevent VENC
from crashing OMAP4 kernel.
Signed-off-by: default avatarChandrabhanu Mahapatra <cmahapatra@ti.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 572bbd58
...@@ -674,11 +674,6 @@ static void venc_dump_regs(struct seq_file *s) ...@@ -674,11 +674,6 @@ static void venc_dump_regs(struct seq_file *s)
{ {
#define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, venc_read_reg(r)) #define DUMPREG(r) seq_printf(s, "%-35s %08x\n", #r, venc_read_reg(r))
if (cpu_is_omap44xx()) {
seq_printf(s, "VENC currently disabled on OMAP44xx\n");
return;
}
if (venc_runtime_get()) if (venc_runtime_get())
return; return;
...@@ -893,16 +888,10 @@ static struct platform_driver omap_venchw_driver = { ...@@ -893,16 +888,10 @@ static struct platform_driver omap_venchw_driver = {
int __init venc_init_platform_driver(void) int __init venc_init_platform_driver(void)
{ {
if (cpu_is_omap44xx())
return 0;
return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe); return platform_driver_probe(&omap_venchw_driver, omap_venchw_probe);
} }
void __exit venc_uninit_platform_driver(void) void __exit venc_uninit_platform_driver(void)
{ {
if (cpu_is_omap44xx())
return;
platform_driver_unregister(&omap_venchw_driver); platform_driver_unregister(&omap_venchw_driver);
} }
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