drm: omapdrm: dss: Store dispc ops in dss_device structure
Remove the global dispc ops variable by storing it in the dss_device structure. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
This commit is contained in:

committed by
Tomi Valkeinen

parent
72877cf38b
commit
d3541ca81d
@@ -520,6 +520,8 @@ static int omapdrm_init(struct omap_drm_private *priv, struct device *dev)
|
||||
DBG("%s", dev_name(dev));
|
||||
|
||||
priv->dev = dev;
|
||||
priv->dss = omapdss_get_dss();
|
||||
priv->dispc_ops = dispc_get_ops(priv->dss);
|
||||
|
||||
omap_crtc_pre_init(priv);
|
||||
|
||||
@@ -527,9 +529,6 @@ static int omapdrm_init(struct omap_drm_private *priv, struct device *dev)
|
||||
if (ret)
|
||||
goto err_crtc_uninit;
|
||||
|
||||
priv->dss = omapdss_get_dss();
|
||||
priv->dispc_ops = dispc_get_ops();
|
||||
|
||||
soc = soc_device_match(omapdrm_soc_devices);
|
||||
priv->omaprev = soc ? (unsigned int)soc->data : 0;
|
||||
priv->wq = alloc_ordered_workqueue("omapdrm", 0);
|
||||
|
Reference in New Issue
Block a user