[PATCH][2.4.21-pre7] fix dmi_scan breakage

From: mikpe@csd.uu.se
Date: Sat Apr 05 2003 - 08:57:51 EST


dmi_scan in -pre7 causes linkage errors when CONFIG_PCI=n,
since neither broken_440gx_bios nor pci_probe exist then.
This patch works around that.

/Mikael

--- linux-2.4.21-pre7/arch/i386/kernel/dmi_scan.c.~1~ 2003-04-05 12:35:30.000000000 +0200
+++ linux-2.4.21-pre7/arch/i386/kernel/dmi_scan.c 2003-04-05 14:22:32.000000000 +0200
@@ -427,8 +427,10 @@
 #ifdef CONFIG_X86_IO_APIC
         skip_ioapic_setup = 0;
 #endif
+#ifdef CONFIG_PCI
         broken_440gx_bios = 1;
         pci_probe |= PCI_BIOS_IRQ_SCAN;
+#endif
         
         return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:25 EST