Skip to contentSkip to conversation

PPC64 remove unnecessary ISA ioports

PATCH New Paul Mackerras 1 participant 1 message Mar 17, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 remove unnecessary ISA ioports

During boot, pSeries_request_regions() should only request I/O ports for legacy ISA in the case that ISA exists on the system. Add a check for this. This patch was suggested by Anton.

arch/ppc64/kernel/pSeries_pci.c renamed from arch/ppc64/kernel/pSeries_pci.c~02_ppc64_request_regions +3 -0
diff -puN arch/ppc64/kernel/pSeries_pci.c~02_ppc64_request_regions arch/ppc64/kernel/pSeries_pci.c
@@ -540,6 +540,9 @@ EXPORT_SYMBOL(pcibios_remove_root_bus);
 
 static void __init pSeries_request_regions(void)
 {
+	if (!isa_io_base)
+		return;
+
 	request_region(0x20,0x20,"pic1");
 	request_region(0xa0,0x20,"pic2");
 	request_region(0x00,0x20,"dma1");