summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/mach64_irq.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 13:56:24 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-04-03 13:56:24 +0000
commit65395f9cb1d22907752512807f36e915f03c1f4c (patch)
tree972f674a6870f45636182ae305fdf2eda2f4f3f5 /sys/dev/pci/drm/mach64_irq.c
parent4dfe44ac139120b50fbd3e04ceb83cf2ae3163a0 (diff)
More compat crud bites the dust: Remove the IRQ_NONE and IRQ_HANDLED
defines. 0 and 1 are fine for returning from irq handlers so why bother with the indirection?
Diffstat (limited to 'sys/dev/pci/drm/mach64_irq.c')
-rw-r--r--sys/dev/pci/drm/mach64_irq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/mach64_irq.c b/sys/dev/pci/drm/mach64_irq.c
index 909b9dbe78f..d705cab7cef 100644
--- a/sys/dev/pci/drm/mach64_irq.c
+++ b/sys/dev/pci/drm/mach64_irq.c
@@ -47,7 +47,8 @@ mach64_driver_irq_handler(void *arg)
{
struct drm_device *dev = arg;
drm_mach64_private_t *dev_priv = dev->dev_private;
- int status;
+ u_int32_t status;
+ int handled = 0;
status = MACH64_READ(MACH64_CRTC_INT_CNTL);
@@ -66,9 +67,9 @@ mach64_driver_irq_handler(void *arg)
atomic_inc(&dev_priv->vbl_received);
drm_handle_vblank(dev, 0);
- return (IRQ_HANDLED);
+ handled = 1;
}
- return (IRQ_NONE);
+ return (handled);
}
u_int32_t