From: Daniel Vetter Date: Wed, 28 Aug 2013 13:02:37 +0000 (+0200) Subject: drm/irq: simplify irq checks in drm_wait_vblank X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~59^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4984979b9b9025a1cb9a9bea089d31a3e01ccff1;p=pandora-kernel.git drm/irq: simplify irq checks in drm_wait_vblank 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_enabled for other reasons, so we might as well ditch that check, too. v2: Also drop the HAVE_IRQ check. Cc: Thierry Reding Reviewed-by: Thierry Reding Reviewed-by: Laurent Pinchart Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed