drm: Allow vblank support without DRIVER_HAVE_IRQ
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 14 Jan 2013 16:05:56 +0000 (16:05 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 Feb 2013 03:53:04 +0000 (13:53 +1000)
commit03f6509df9218c760ae74f41a609233220d33f19
tree4c16f69a8ae54a6ffafd0c285afe165f63cd086b
parent1e6d17a5df848cf8e483b689c6295776e9d6d997
drm: Allow vblank support without DRIVER_HAVE_IRQ

Drivers that register interrupt handlers without the DRM core helpers
don't initialize the .irq_enabled field and drm_dev_to_irq() may fail
when called on them. This shouldn't preclude them from implementing
the vblank IOCTL.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_irq.c