[PATCH] remove unnecessary ISA ioports

John Rose johnrose at austin.ibm.com
Sat Feb 26 09:40:51 EST 2005


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.

Please apply, if appropriate.

Thanks-
John

Signed-off-by: John Rose <johnrose at austin.ibm.com>

diff -puN arch/ppc64/kernel/pSeries_pci.c~02_ppc64_request_regions arch/ppc64/kernel/pSeries_pci.c
--- 2_6_linus_2/arch/ppc64/kernel/pSeries_pci.c~02_ppc64_request_regions	2005-02-25 16:28:09.000000000 -0600
+++ 2_6_linus_2-johnrose/arch/ppc64/kernel/pSeries_pci.c	2005-02-25 16:28:09.000000000 -0600
@@ -529,6 +529,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");

_




More information about the Linuxppc64-dev mailing list