diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-11 02:28:06 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-14 06:09:48 -0400 |
commit | ba02fa37de80bea10d706f39f076dd848348320a (patch) | |
tree | a92111444bb7ab0e523b7a5a2e96b44cc87b863f /drivers/video/omap2/dss/venc.c | |
parent | cce18a947967ed028e5301bce84cbaff395489a6 (diff) |
HACK: OMAP: DSS2: VENC: disable VENC on OMAP4 to prevent crash
Something seems to be wrong with OMAP4 & VENC, and register access fails
in omap_venchw_probe().
This patch skips venc driver registration on OMAP4, thus circumventing
the problem for now.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/venc.c')
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index 43009e57cd3e..8e35a5bae429 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c | |||
@@ -769,10 +769,16 @@ static struct platform_driver omap_venchw_driver = { | |||
769 | 769 | ||
770 | int venc_init_platform_driver(void) | 770 | int venc_init_platform_driver(void) |
771 | { | 771 | { |
772 | if (cpu_is_omap44xx()) | ||
773 | return 0; | ||
774 | |||
772 | return platform_driver_register(&omap_venchw_driver); | 775 | return platform_driver_register(&omap_venchw_driver); |
773 | } | 776 | } |
774 | 777 | ||
775 | void venc_uninit_platform_driver(void) | 778 | void venc_uninit_platform_driver(void) |
776 | { | 779 | { |
780 | if (cpu_is_omap44xx()) | ||
781 | return; | ||
782 | |||
777 | return platform_driver_unregister(&omap_venchw_driver); | 783 | return platform_driver_unregister(&omap_venchw_driver); |
778 | } | 784 | } |