From 514735b13d6e0430400d51848a75c27a64f52178 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 4 Sep 2013 18:18:59 +0200 Subject: [PATCH] kernel/drm: Fix AGP detection for Matrox cards. Since DRM drivers attach to vgapci, we need to look at the grandparent. --- sys/dev/drm/mga/mga_drv.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/drm/mga/mga_drv.c b/sys/dev/drm/mga/mga_drv.c index f0835a4263..60e1d0e61e 100644 --- a/sys/dev/drm/mga/mga_drv.c +++ b/sys/dev/drm/mga/mga_drv.c @@ -71,11 +71,7 @@ static int mga_driver_device_is_agp(struct drm_device * dev) * device is 0x0021 (HB6 Universal PCI-PCI bridge), we reject the * device. */ -#if __FreeBSD_version >= 700010 bus = device_get_parent(device_get_parent(dev->device)); -#else - bus = device_get_parent(dev->device); -#endif if (pci_get_device(dev->device) == 0x0525 && pci_get_vendor(bus) == 0x3388 && pci_get_device(bus) == 0x0021) -- 2.41.0