]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
OMAPDSS: explicitely initialize dssdev->channel for new displays
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 7 Sep 2012 12:21:36 +0000 (15:21 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 18 Sep 2012 13:15:03 +0000 (16:15 +0300)
HDMI and VENC outputs always use the DIGIT output from DISPC. The dssdev
struct contains "channel" field which is used to specify the DISPC
output for the display, but this was not used for HDMI and VENC.

This patch fills the channel field explicitely for HDMI and VENC
displays so that we can always rely on the channel field.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/venc.c

index 76d100b975e0c6428a5d9ee76b652aa066dda77a..3b10e18efa22478cdeeb302e9fa847ce4733b128 100644 (file)
@@ -946,6 +946,8 @@ static void __init hdmi_probe_pdata(struct platform_device *pdev)
        hdmi.ls_oe_gpio = priv->ls_oe_gpio;
        hdmi.hpd_gpio = priv->hpd_gpio;
 
+       dssdev->channel = OMAP_DSS_CHANNEL_DIGIT;
+
        r = hdmi_init_display(dssdev);
        if (r) {
                DSSERR("device %s init failed: %d\n", dssdev->name, r);
index b9c0a8f468d2ab1b49adce59b9786f41a83dc54c..88fa6ea77e74f26d8e904f967ac756c3c1ebf6a7 100644 (file)
@@ -773,6 +773,8 @@ static void __init venc_probe_pdata(struct platform_device *pdev)
        if (!dssdev)
                return;
 
+       dssdev->channel = OMAP_DSS_CHANNEL_DIGIT;
+
        r = venc_init_display(dssdev);
        if (r) {
                DSSERR("device %s init failed: %d\n", dssdev->name, r);