diff options
Diffstat (limited to 'drivers/video/omap2/dss/venc.c')
-rw-r--r-- | drivers/video/omap2/dss/venc.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c index 56efa3bb465d..006caf3cb509 100644 --- a/drivers/video/omap2/dss/venc.c +++ b/drivers/video/omap2/dss/venc.c | |||
@@ -744,7 +744,7 @@ static void venc_put_clocks(void) | |||
744 | static struct omap_dss_device * __init venc_find_dssdev(struct platform_device *pdev) | 744 | static struct omap_dss_device * __init venc_find_dssdev(struct platform_device *pdev) |
745 | { | 745 | { |
746 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; | 746 | struct omap_dss_board_info *pdata = pdev->dev.platform_data; |
747 | const char *def_disp_name = dss_get_default_display_name(); | 747 | const char *def_disp_name = omapdss_get_default_display_name(); |
748 | struct omap_dss_device *def_dssdev; | 748 | struct omap_dss_device *def_dssdev; |
749 | int i; | 749 | int i; |
750 | 750 | ||
@@ -795,9 +795,18 @@ static void __init venc_probe_pdata(struct platform_device *vencdev) | |||
795 | return; | 795 | return; |
796 | } | 796 | } |
797 | 797 | ||
798 | r = omapdss_output_set_device(&venc.output, dssdev); | ||
799 | if (r) { | ||
800 | DSSERR("failed to connect output to new device: %s\n", | ||
801 | dssdev->name); | ||
802 | dss_put_device(dssdev); | ||
803 | return; | ||
804 | } | ||
805 | |||
798 | r = dss_add_device(dssdev); | 806 | r = dss_add_device(dssdev); |
799 | if (r) { | 807 | if (r) { |
800 | DSSERR("device %s register failed: %d\n", dssdev->name, r); | 808 | DSSERR("device %s register failed: %d\n", dssdev->name, r); |
809 | omapdss_output_unset_device(&venc.output); | ||
801 | dss_put_device(dssdev); | 810 | dss_put_device(dssdev); |
802 | return; | 811 | return; |
803 | } | 812 | } |