]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: Manage the usable omap_dss_device list within omap_drm_private
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 12 Feb 2018 09:44:37 +0000 (11:44 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:25 +0000 (16:13 +0300)
commitf4b22355a48f0a6cd94079890d07fba5b4404d2d
tree4c0b9a9e0fd58d05dc357086069bce0d74a1f65c
parentb49e29a6b26a6591022b19b67f982d6660315ab9
drm/omap: Manage the usable omap_dss_device list within omap_drm_private

Instead of reaching back to DSS to iterate through the dss_devices every
time, use an internal array where we store the available and usable
dss_devices.

At the same time remove the omapdss_device_is_connected() check from
omap_modeset_init() as it became irrelevant: We are not adding dssdevs
if their connect failed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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>
drivers/gpu/drm/omapdrm/omap_drv.c
drivers/gpu/drm/omapdrm/omap_drv.h