summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/hdmi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-09-06 13:57:39 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-09-18 16:10:32 +0300
commit8768a52f8f53e6f54bce77faade1007d4142fa7c (patch)
tree41ac02d9d8f78f349ad8a19f45808088b1fc0c54 /drivers/video/omap2/dss/hdmi.c
parentfda7c362f9ef59de6d6db67a854e1a114af0c69a (diff)
downloadblackbird-op-linux-8768a52f8f53e6f54bce77faade1007d4142fa7c.tar.gz
blackbird-op-linux-8768a52f8f53e6f54bce77faade1007d4142fa7c.zip
OMAPDSS: omap_dss_register_device() doesn't take display index
We used to have all the displays of the board in one list, and we made a "displayX" directory in the sysfs, where X was the index of the display in the list. This doesn't work anymore with device tree, as there's no single list to get the number from, and it doesn't work very well even with non-DT as we need to do some tricks to get the index nowadays. This patch changes omap_dss_register_device() so that it doesn't take disp_num as a parameter anymore, but uses a private increasing counter for the display number. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/hdmi.c')
-rw-r--r--drivers/video/omap2/dss/hdmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 83f18458a406..bb07143a2d79 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -923,7 +923,7 @@ static void __init hdmi_probe_pdata(struct platform_device *pdev)
continue;
}
- r = omap_dss_register_device(dssdev, &pdev->dev, i);
+ r = omap_dss_register_device(dssdev, &pdev->dev);
if (r)
DSSERR("device %s register failed: %d\n",
dssdev->name, r);
OpenPOWER on IntegriCloud