diff options
author | Laurent Pinchart | 2018-02-28 16:30:30 +0100 |
---|---|---|
committer | Tomi Valkeinen | 2018-09-03 15:13:26 +0200 |
commit | fb5571717c24c264518aaaf1ab4ec4df73e4cebd (patch) | |
tree | bc524604e9c431eebee1ba5919f872744083ff7a /drivers/gpu/drm/omapdrm/dss/output.c | |
parent | drm/omap: displays: Don't call disconnect handlers directly (diff) | |
download | kernel-qcow2-linux-fb5571717c24c264518aaaf1ab4ec4df73e4cebd.tar.gz kernel-qcow2-linux-fb5571717c24c264518aaaf1ab4ec4df73e4cebd.tar.xz kernel-qcow2-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/output.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/output.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/output.c b/drivers/gpu/drm/omapdrm/dss/output.c index e659c8e5c419..6abdb615a4c0 100644 --- a/drivers/gpu/drm/omapdrm/dss/output.c +++ b/drivers/gpu/drm/omapdrm/dss/output.c @@ -47,9 +47,6 @@ int omapdss_output_set_device(struct omap_dss_device *out, goto err; } - out->dst = dssdev; - dssdev->src = out; - mutex_unlock(&output_lock); return 0; @@ -81,9 +78,6 @@ int omapdss_output_unset_device(struct omap_dss_device *out) goto err; } - out->dst->src = NULL; - out->dst = NULL; - mutex_unlock(&output_lock); return 0; |