aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/display.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-12-07 05:50:08 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-12-07 09:55:04 -0500
commit486c0e17b7d1a4f8f057a97f2e48f715208f950d (patch)
treed8ece0b76b86b47973921d33f5971d3a5be5d79a /drivers/video/omap2/dss/display.c
parent09a8c45cbb872f5e861c4385d6967d0aa7f637f1 (diff)
OMAPDSS: manage output-dssdev connection in output drivers
We currently attach an output to a dssdev in the initialization code for dssdevices in display.c. This works, but doesn't quite make sense: an output entity represents (surprisingly) an output of DSS, which is managed by an output driver. The output driver also handles adding new dssdev's for that particular output. It makes more sense to make the output-dssdev connection in the output driver. This is also in line with common display framework. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/display.c')
-rw-r--r--drivers/video/omap2/dss/display.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c
index 008e9eecaf72..05f21b6231b7 100644
--- a/drivers/video/omap2/dss/display.c
+++ b/drivers/video/omap2/dss/display.c
@@ -79,17 +79,8 @@ EXPORT_SYMBOL(omapdss_default_get_timings);
79int dss_init_device(struct platform_device *pdev, 79int dss_init_device(struct platform_device *pdev,
80 struct omap_dss_device *dssdev) 80 struct omap_dss_device *dssdev)
81{ 81{
82 struct omap_dss_output *out;
83 int r; 82 int r;
84 83
85 out = omapdss_get_output_from_dssdev(dssdev);
86
87 r = omapdss_output_set_device(out, dssdev);
88 if (r) {
89 DSSERR("failed to connect output to new device\n");
90 return r;
91 }
92
93 r = display_init_sysfs(pdev, dssdev); 84 r = display_init_sysfs(pdev, dssdev);
94 if (r) { 85 if (r) {
95 omapdss_output_unset_device(dssdev->output); 86 omapdss_output_unset_device(dssdev->output);
@@ -103,9 +94,6 @@ void dss_uninit_device(struct platform_device *pdev,
103 struct omap_dss_device *dssdev) 94 struct omap_dss_device *dssdev)
104{ 95{
105 display_uninit_sysfs(pdev, dssdev); 96 display_uninit_sysfs(pdev, dssdev);
106
107 if (dssdev->output)
108 omapdss_output_unset_device(dssdev->output);
109} 97}
110 98
111static int dss_suspend_device(struct device *dev, void *data) 99static int dss_suspend_device(struct device *dev, void *data)