summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/dpi.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-02-28 17:30:30 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-03 16:13:26 +0300
commitfb5571717c24c264518aaaf1ab4ec4df73e4cebd (patch)
treebc524604e9c431eebee1ba5919f872744083ff7a /drivers/gpu/drm/omapdrm/dss/dpi.c
parent73fc0ac4a69506ead7cf0c0ad0ef79f283766f25 (diff)
downloadblackbird-op-linux-fb5571717c24c264518aaaf1ab4ec4df73e4cebd.tar.gz
blackbird-op-linux-fb5571717c24c264518aaaf1ab4ec4df73e4cebd.zip
drm/omap: dss: Move src and dst check and set to connection handlers
The encoders duplicate the same omap_dss_device src and dst fields set and checks in their connect and disconnect handlers. Move the code to the connect and disconnect wrappers. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dpi.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dpi.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dpi.c b/drivers/gpu/drm/omapdrm/dss/dpi.c
index 11d94b310d1a..bb7dcd88026f 100644
--- a/drivers/gpu/drm/omapdrm/dss/dpi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dpi.c
@@ -671,11 +671,6 @@ static void dpi_disconnect(struct omap_dss_device *dssdev,
{
struct dpi_data *dpi = dpi_get_data_from_dssdev(dssdev);
- WARN_ON(dst != dssdev->dst);
-
- if (dst != dssdev->dst)
- return;
-
omapdss_output_unset_device(dssdev);
dss_mgr_disconnect(&dpi->output, dssdev);
OpenPOWER on IntegriCloud