From ea2d4dc468dcebe6d38e676469ec51ed1d43490b Mon Sep 17 00:00:00 2001 From: David Nusinow Date: Thu, 11 Oct 2007 20:26:02 -0400 Subject: [PATCH] When there's no xorg.conf, use the video driver autoloading function --- hw/xfree86/common/xf86AutoConfig.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c index bf41c4dd3..797334e6d 100644 --- a/hw/xfree86/common/xf86AutoConfig.c +++ b/hw/xfree86/common/xf86AutoConfig.c @@ -220,22 +220,7 @@ xf86AutoConfig(void) const char *driver = NULL; ConfigStatus ret; - /* Find the primary device, and get some information about it. */ - iter = pci_slot_match_iterator_create(NULL); - while ((info = pci_device_next(iter)) != NULL) { - if (xf86IsPrimaryPci(info)) { - break; - } - } - - pci_iterator_destroy(iter); - - if (!info) { - ErrorF("Primary device is not PCI\n"); - } - - if (info) - driver = videoPtrToDriverName(info); + driver = chooseVideoDriver(); AppendToConfig(BUILTIN_MODULE_SECTION); AppendToConfig(BUILTIN_MONITOR_SECTION);