summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/mach64_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-11-17 00:30:42 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-11-17 00:30:42 +0000
commitff5bdf079bc6c6ab983e821b29ad19d5ab111242 (patch)
treedcea4e9b90778ed2ff6838e5d64bd17f9286b728 /sys/dev/pci/drm/mach64_drv.c
parent7a61cb25c577af4a36ec5b27e1455727d0089e69 (diff)
Instead of using a width-1 bitfield for storing the driver capabilities
in the callback structure, just use a bunch of ORed together bits. This has been annoying me for ages.
Diffstat (limited to 'sys/dev/pci/drm/mach64_drv.c')
-rw-r--r--sys/dev/pci/drm/mach64_drv.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/drm/mach64_drv.c b/sys/dev/pci/drm/mach64_drv.c
index 16ac8ed35e5..a5077bf7e74 100644
--- a/sys/dev/pci/drm/mach64_drv.c
+++ b/sys/dev/pci/drm/mach64_drv.c
@@ -68,12 +68,8 @@ static const struct drm_driver_info mach64_driver = {
.minor = DRIVER_MINOR,
.patchlevel = DRIVER_PATCHLEVEL,
- .use_agp = 1,
- .use_mtrr = 1,
- .use_pci_dma = 1,
- .use_dma = 1,
- .use_irq = 1,
- .use_vbl_irq = 1,
+ .flags = DRIVER_AGP | DRIVER_MTRR | DRIVER_PCI_DMA |
+ DRIVER_DMA | DRIVER_SG | DRIVER_IRQ,
};
int