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
- Lines: 18
- Date:
2003-06-13 07:51:32.000000000 -0700
- Orig file:
linux-2.4.20/arch/sh/kernel/pcibios.c
- Orig date:
2002-11-28 15:53:11.000000000 -0800
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)