drm/irq: track the irq installed in drm_irq_install in dev->irq
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Dec 2013 10:21:15 +0000 (11:21 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 11 Dec 2014 01:21:38 +0000 (10:21 +0900)
commitee8c130bf28be35604a93417cfa747c2621d9f3e
treefeabcd78f2e2005937003b2299f3440b910fd8b3
parentd9e0f8ea9f651a37a95ce8d3a650a9e16274aca8
drm/irq: track the irq installed in drm_irq_install in dev->irq

To get rid of the dev->bus->get_irq callback we need to pass in the
desired irq explicitly into drm_irq_install. To avoid having to do the
same for drm_irq_unistall just track it internally. That leaves
drivers with less room to botch things up.

v2: Add the hunk lost in an earlier patch to this one (Thierry).

v3: Fix up the totally fumbled logic in drm_irq_install and use the
local variable consistently. Spotted by both Thierry and Laurent.
Shame on me for failing to properly test the rebase version of this
patch ...

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
(cherry picked from commit 7c1a38e391745cca72627979e5e02924bed5b43d)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/gpu/drm/drm_irq.c
include/drm/drmP.h