patch-2.4.21 linux-2.4.21/arch/sh/kernel/pcibios.c

Next file: linux-2.4.21/arch/sh/kernel/process.c
Previous file: linux-2.4.21/arch/sh/kernel/irq_intc2.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/sh/kernel/pcibios.c linux-2.4.21/arch/sh/kernel/pcibios.c
@@ -73,7 +73,7 @@
 	}
 }
 
-int pcibios_enable_device(struct pci_dev *dev)
+int pcibios_enable_device(struct pci_dev *dev, int mask)
 {
 	u16 cmd, old_cmd;
 	int idx;
@@ -82,6 +82,8 @@
 	pci_read_config_word(dev, PCI_COMMAND, &cmd);
 	old_cmd = cmd;
 	for(idx=0; idx<6; idx++) {
+		if (!(mask & (1 << idx)))
+			continue;
 		r = &dev->resource[idx];
 		if (!r->start && r->end) {
 			printk(KERN_ERR "PCI: Device %s not available because of resource collisions\n", dev->slot_name);

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