mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
drm/omapdrm: Track IRQ state in local device state
Replace usage of struct drm_device.irq_enabled with the driver's own state field struct omap_drm_device.irq_enabled. The field in the DRM device structure is considered legacy and should not be used by KMS drivers. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210625082222.3845-16-tzimmermann@suse.de
This commit is contained in:
parent
a77cd38b3d
commit
daea75017c
2 changed files with 5 additions and 3 deletions
|
@ -48,6 +48,8 @@ struct omap_drm_private {
|
||||||
struct dss_device *dss;
|
struct dss_device *dss;
|
||||||
struct dispc_device *dispc;
|
struct dispc_device *dispc;
|
||||||
|
|
||||||
|
bool irq_enabled;
|
||||||
|
|
||||||
unsigned int num_pipes;
|
unsigned int num_pipes;
|
||||||
struct omap_drm_pipeline pipes[8];
|
struct omap_drm_pipeline pipes[8];
|
||||||
struct omap_drm_pipeline *channels[8];
|
struct omap_drm_pipeline *channels[8];
|
||||||
|
|
|
@ -291,7 +291,7 @@ int omap_drm_irq_install(struct drm_device *dev)
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
dev->irq_enabled = true;
|
priv->irq_enabled = true;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -300,10 +300,10 @@ void omap_drm_irq_uninstall(struct drm_device *dev)
|
||||||
{
|
{
|
||||||
struct omap_drm_private *priv = dev->dev_private;
|
struct omap_drm_private *priv = dev->dev_private;
|
||||||
|
|
||||||
if (!dev->irq_enabled)
|
if (!priv->irq_enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dev->irq_enabled = false;
|
priv->irq_enabled = false;
|
||||||
|
|
||||||
dispc_free_irq(priv->dispc, dev);
|
dispc_free_irq(priv->dispc, dev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue