diff options
Diffstat (limited to 'drivers/video/omap2/dss/venc.c')
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index c194dfab635..005fdaa2cf7 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c | |||
@@ -725,7 +725,7 @@ static struct omap_dss_driver venc_driver = { | |||
725 | }; | 725 | }; |
726 | /* driver end */ | 726 | /* driver end */ |
727 | 727 | ||
728 | int venc_init_display(struct omap_dss_device *dssdev) | 728 | static int __init venc_init_display(struct omap_dss_device *dssdev) |
729 | { | 729 | { |
730 | DSSDBG("init_display\n"); | 730 | DSSDBG("init_display\n"); |
731 | 731 | ||
@@ -883,6 +883,12 @@ static int __init omap_venchw_probe(struct platform_device *pdev) | |||
883 | if (dssdev->type != OMAP_DISPLAY_TYPE_VENC) | 883 | if (dssdev->type != OMAP_DISPLAY_TYPE_VENC) |
884 | continue; | 884 | continue; |
885 | 885 | ||
886 | r = venc_init_display(dssdev); | ||
887 | if (r) { | ||
888 | DSSERR("device %s init failed: %d\n", dssdev->name, r); | ||
889 | continue; | ||
890 | } | ||
891 | |||
886 | r = omap_dss_register_device(dssdev, &pdev->dev, i); | 892 | r = omap_dss_register_device(dssdev, &pdev->dev, i); |
887 | if (r) | 893 | if (r) |
888 | DSSERR("device %s register failed: %d\n", | 894 | DSSERR("device %s register failed: %d\n", |