mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 03:49:57 -04:00
drm/omap: dss: Merge two disconnection helpers
To simplify the pipeline disconnection handling merge the omapdss_device_disconnect() and omapdss_output_unset_device() functions. The device state check is now called for every device in the pipeline, extending this sanity check coverage. There is no need to return an error from omapdss_device_disconnect() when the check fails, as omapdss_output_unset_device() used to do, given that we can't prevent disconnection due to device unbinding (the return value of omapdss_output_unset_device() is never checked in the current code for that reason). 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>
This commit is contained in:
committed by
Tomi Valkeinen
parent
713165561b
commit
3be0f15bd6
@@ -235,6 +235,8 @@ void omapdss_device_disconnect(struct omap_dss_device *src,
|
||||
src->dst = NULL;
|
||||
}
|
||||
|
||||
WARN_ON(dst->state != OMAP_DSS_DISPLAY_DISABLED);
|
||||
|
||||
if (dst->driver)
|
||||
dst->driver->disconnect(src, dst);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user