patch-2.3.16 linux/kernel/resource.c

Next file: linux/kernel/sysctl.c
Previous file: linux/kernel/ptrace.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.15/linux/kernel/resource.c linux/kernel/resource.c
@@ -15,8 +15,8 @@
 
 #include <asm/spinlock.h>
 
-struct resource ioport_resource = { "PCI IO", 0x0000, 0xFFFF };
-struct resource iomem_resource = { "PCI mem", 0x00000000, 0xFFFFFFFF };
+struct resource ioport_resource = { "PCI IO", 0x0000, 0xFFFF, IORESOURCE_IO };
+struct resource iomem_resource = { "PCI mem", 0x00000000, 0xFFFFFFFF, IORESOURCE_MEM };
 
 static rwlock_t resource_lock = RW_LOCK_UNLOCKED;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)