diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-05-31 16:14:43 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2018-09-03 09:13:29 -0400 |
commit | 47a3ee27934a7a774be4aa1733c662f33e1ae656 (patch) | |
tree | 285cb957ea78eee57aabea31458e4cdbcb640bcf /drivers/gpu/drm/omapdrm/omap_drv.c | |
parent | 7805d1e5098c1a90e5feb153809b16ba890b03e4 (diff) |
drm/omap: Pass both output and display omap_dss_device to connector init
The drm_connector implementation requires access to the omap_dss_device
corresponding to the display, which is passed to its initialization
function and stored internally. Refactoring of the timings operations
will require access to the output omap_dss_device. To prepare for that,
pass it to the connector initialization function and store it internally
as well.
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/omap_drv.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index 174bf498f4e5..03771f818eaa 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c | |||
@@ -323,7 +323,8 @@ static int omap_modeset_init(struct drm_device *dev) | |||
323 | return -ENOMEM; | 323 | return -ENOMEM; |
324 | 324 | ||
325 | connector = omap_connector_init(dev, | 325 | connector = omap_connector_init(dev, |
326 | get_connector_type(display), display, encoder); | 326 | get_connector_type(display), pipe->output, |
327 | display, encoder); | ||
327 | if (!connector) | 328 | if (!connector) |
328 | return -ENOMEM; | 329 | return -ENOMEM; |
329 | 330 | ||