patch-2.1.127 linux/arch/sparc/kernel/ebus.c
Next file: linux/arch/sparc/kernel/init_task.c
Previous file: linux/arch/sparc/kernel/devices.c
Back to the patch index
Back to the overall index
-  Lines: 16
-  Date:
Tue Oct 27 09:52:20 1998
-  Orig file: 
v2.1.126/linux/arch/sparc/kernel/ebus.c
-  Orig date: 
Mon Oct  5 13:13:37 1998
diff -u --recursive --new-file v2.1.126/linux/arch/sparc/kernel/ebus.c linux/arch/sparc/kernel/ebus.c
@@ -1,4 +1,4 @@
-/* $Id: ebus.c,v 1.1 1998/09/18 10:43:43 jj Exp $
+/* $Id: ebus.c,v 1.2 1998/10/07 11:35:16 jj Exp $
  * ebus.c: PCI to EBus bridge device.
  *
  * Copyright (C) 1997  Eddie C. Dost  (ecd@skynet.be)
@@ -141,6 +141,9 @@
 		       (unsigned long)sparc_alloc_io (dev->base_address[i], 0,
 						      regs[i].reg_size,
 						      dev->prom_name, 0, 0);
+		    /* Some drivers call 'check_region', so we release it */
+                    release_region(dev->base_address[i] & PAGE_MASK, PAGE_SIZE);
+
 		    if (dev->base_address[i] == 0 ) {
 			panic("ebus: unable sparc_alloc_io for dev %s",
 			      dev->prom_name);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov