diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 03:49:20 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 03:49:20 +0000 |
commit | a43cdb6fcb92bf96c215850a16e23b90fc13b585 (patch) | |
tree | c31b98c028d1caa268eca55ff9307ed0c2c5ebc5 /sys/dev/pci/drm/drm_agpsupport.c | |
parent | 960491229bf3a7472733aa63728e937ffb4f73a7 (diff) |
make device works out if it's agp and tells the drm driver, not the
other way round. More dev->pa reduction
Diffstat (limited to 'sys/dev/pci/drm/drm_agpsupport.c')
-rw-r--r-- | sys/dev/pci/drm/drm_agpsupport.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/pci/drm/drm_agpsupport.c b/sys/dev/pci/drm/drm_agpsupport.c index d33c568a928..9125cde4a7a 100644 --- a/sys/dev/pci/drm/drm_agpsupport.c +++ b/sys/dev/pci/drm/drm_agpsupport.c @@ -40,24 +40,6 @@ void drm_agp_remove_entry(struct drm_device *, struct drm_agp_mem *); int -drm_device_is_agp(struct drm_device *dev) -{ - if (dev->driver->device_is_agp != NULL) { - int ret; - /* - * device_is_agp returns a tristate, 0 = not AGP, 1 = definitely - * AGP, 2 = fall back to PCI capability - */ - ret = (*dev->driver->device_is_agp)(dev); - if (ret != DRM_MIGHT_BE_AGP) - return (ret); - } - - return (pci_get_capability(dev->pa.pa_pc, dev->pa.pa_tag, PCI_CAP_AGP, - NULL, NULL)); -} - -int drm_agp_info(struct drm_device * dev, struct drm_agp_info *info) { struct agp_info *kern; |