[RFC 10/12] drm/i810: Remove dead code

Thierry Reding thierry.reding at gmail.com
Thu Feb 20 23:55:26 PST 2014


From: Thierry Reding <treding at nvidia.com>

The i810 driver never sets DRIVER_HAVE_IRQ, so testing for the presence
of the feature will always fail.

Signed-off-by: Thierry Reding <treding at nvidia.com>
---
 drivers/gpu/drm/i810/i810_dma.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c
index aeace37415aa..d12e5132c4bc 100644
--- a/drivers/gpu/drm/i810/i810_dma.c
+++ b/drivers/gpu/drm/i810/i810_dma.c
@@ -200,13 +200,6 @@ static int i810_dma_cleanup(struct drm_device *dev)
 {
 	struct drm_device_dma *dma = dev->dma;
 
-	/* Make sure interrupts are disabled here because the uninstall ioctl
-	 * may not have been called from userspace and after dev_private
-	 * is freed, it's too late.
-	 */
-	if (drm_core_check_feature(dev, DRIVER_HAVE_IRQ) && dev->irq_enabled)
-		drm_irq_uninstall(dev);
-
 	if (dev->dev_private) {
 		int i;
 		drm_i810_private_t *dev_priv =
-- 
1.8.4.2



More information about the dri-devel mailing list