[PATCH] drm/irq: simplify irq checks in drm_wait_vblank

2013-12-16 Thread Thierry Reding
On Mon, Dec 16, 2013 at 11:30:13AM +0100, Daniel Vetter wrote: > Checking for both an irq number _and_ whether it's enabled is > redundant. Originally I've thought the drm_dev_to_irq call would break > drivers which do their own irq checking, but those shouldn't have > DRIVER_HAVE_IRQ set as Thierr

[PATCH] drm/irq: simplify irq checks in drm_wait_vblank

2013-12-16 Thread Daniel Vetter
Checking for both an irq number _and_ whether it's enabled is redundant. Originally I've thought the drm_dev_to_irq call would break drivers which do their own irq checking, but those shouldn't have DRIVER_HAVE_IRQ set as Thierry Reding pointed out. But such drivers already need to set dev->irq_ena