diff options
| author | 2018-03-02 03:05:10 +0200 | |
|---|---|---|
| committer | 2018-09-03 16:13:26 +0300 | |
| commit | 845417b3b3b0d6c1694394ae6c3e07b281b89f82 (patch) | |
| tree | 4b5d0c364186c9bd13ba92c024baeb2dd244112a /drivers/gpu/drm/omapdrm/omap_crtc.c | |
| parent | drm/omap: dss: Store dss_device pointer in omap_dss_device (diff) | |
| download | linux-dev-845417b3b3b0d6c1694394ae6c3e07b281b89f82.tar.xz linux-dev-845417b3b3b0d6c1694394ae6c3e07b281b89f82.zip | |
drm/omap: dss: Move DSS mgr ops and private data to dss_device
The DSS manager ops and private data pointer are specific to a DSS
instance. Store them in the dss_device structure instead of global
variable.
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_crtc.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_crtc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c b/drivers/gpu/drm/omapdrm/omap_crtc.c index e18ca6cdc0d6..4ddc4ed18b47 100644 --- a/drivers/gpu/drm/omapdrm/omap_crtc.c +++ b/drivers/gpu/drm/omapdrm/omap_crtc.c @@ -683,12 +683,12 @@ void omap_crtc_pre_init(struct omap_drm_private *priv) { memset(omap_crtcs, 0, sizeof(omap_crtcs)); - dss_install_mgr_ops(&mgr_ops, priv); + dss_install_mgr_ops(priv->dss, &mgr_ops, priv); } -void omap_crtc_pre_uninit(void) +void omap_crtc_pre_uninit(struct omap_drm_private *priv) { - dss_uninstall_mgr_ops(); + dss_uninstall_mgr_ops(priv->dss); } /* initialize crtc */ |
