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>
This commit is contained in:

committed by
Tomi Valkeinen

parent
f324b2798c
commit
845417b3b3
@@ -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 */
|
||||
|
Reference in New Issue
Block a user