Update of /cvsroot/linux-mips/linux/arch/mips/ite-boards/qed-4n-s01b
In directory usw-pr-cvs1:/tmp/cvs-serv4756/arch/mips/ite-boards/qed-4n-s01b
Modified Files:
pci_fixup.c
Log Message:
* updated defconfig file
* pci_fixup bug fix (irq fixup was not doing the pci write)
* added it8172 sound support in the config.in and sound Makefile
Index: pci_fixup.c
===================================================================
RCS file: /cvsroot/linux-mips/linux/arch/mips/ite-boards/qed-4n-s01b/pci_fixup.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pci_fixup.c 2001/07/07 19:41:39 1.2
+++ pci_fixup.c 2001/11/12 22:58:48 1.3
@@ -64,8 +64,9 @@
};
pci_for_each_dev(dev) {
- if (dev->bus->number != 0)
+ if (dev->bus->number != 0) {
return;
+ }
pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
slot = PCI_SLOT(dev->devfn);
@@ -74,8 +75,9 @@
switch (slot) {
case 0x01:
/*
- * Internal device 1 is actually 7 different internal
- * devices on the IT8172G (a multi-function device).
+ * Internal device 1 is actually 7 different
+ * internal devices on the IT8172G (a multi-
+ * function device).
*/
if (func < 7)
dev->irq = internal_func_irqs[func];
@@ -181,15 +183,13 @@
}
break;
default:
- return;
+ continue; /* do nothing */
}
- }
-
#ifdef DEBUG
- printk("irq fixup: slot %d, vendor %x, int line %d, int number %d\n",
- slot, vendor, pin, dev->irq);
+ printk("irq fixup: slot %d, int line %d, int number %d\n",
+ slot, pin, dev->irq);
#endif
- pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
-
+ pci_write_config_byte(dev, PCI_INTERRUPT_LINE, dev->irq);
+ }
}
#endif
|