aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/pci/direct.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/i386/pci/direct.c b/arch/i386/pci/direct.c
index 99012b93bd12..4457cf3eb401 100644
--- a/arch/i386/pci/direct.c
+++ b/arch/i386/pci/direct.c
@@ -4,6 +4,7 @@
4 4
5#include <linux/pci.h> 5#include <linux/pci.h>
6#include <linux/init.h> 6#include <linux/init.h>
7#include <linux/dmi.h>
7#include "pci.h" 8#include "pci.h"
8 9
9/* 10/*
@@ -188,6 +189,10 @@ static int __init pci_sanity_check(struct pci_raw_ops *o)
188 189
189 if (pci_probe & PCI_NO_CHECKS) 190 if (pci_probe & PCI_NO_CHECKS)
190 return 1; 191 return 1;
192 /* Assume Type 1 works for newer systems.
193 This handles machines that don't have anything on PCI Bus 0. */
194 if (dmi_get_year(DMI_BIOS_DATE) >= 2001)
195 return 1;
191 196
192 for (devfn = 0; devfn < 0x100; devfn++) { 197 for (devfn = 0; devfn < 0x100; devfn++) {
193 if (o->read(0, 0, devfn, PCI_CLASS_DEVICE, 2, &x)) 198 if (o->read(0, 0, devfn, PCI_CLASS_DEVICE, 2, &x))