|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
#include <linux/pci.h>
|
|
|
#include <linux/init.h>
|
|
|
+#include <linux/dmi.h>
|
|
|
#include "pci.h"
|
|
|
|
|
|
/*
|
|
@@ -188,6 +189,10 @@ static int __init pci_sanity_check(struct pci_raw_ops *o)
|
|
|
|
|
|
if (pci_probe & PCI_NO_CHECKS)
|
|
|
return 1;
|
|
|
+ /* Assume Type 1 works for newer systems.
|
|
|
+ This handles machines that don't have anything on PCI Bus 0. */
|
|
|
+ if (dmi_get_year(DMI_BIOS_DATE) >= 2001)
|
|
|
+ return 1;
|
|
|
|
|
|
for (devfn = 0; devfn < 0x100; devfn++) {
|
|
|
if (o->read(0, 0, devfn, PCI_CLASS_DEVICE, 2, &x))
|