port more changes to make PCI work
[linux-2.4.git] / drivers / pci / setup-irq.c
index 4c65b2e..da8bd90 100644 (file)
@@ -49,15 +49,22 @@ pdev_fixup_irq(struct pci_dev *dev,
        slot = (*swizzle)(dev, &pin);
 
        irq = (*map_irq)(dev, slot, pin);
+#if 0  //+Bing modified 01132005
        if (irq == -1)
                irq = 0;
+#endif 
        dev->irq = irq;
 
-       DBGC((KERN_ERR "PCI fixup irq: (%s) got %d\n", dev->name, dev->irq));
-
+       //DBGC((KERN_ERR "PCI fixup irq: (%s) got %d\n", dev->name, dev->irq));
+       printk("PCI fixup irq: (%s) got %d\n", dev->name, dev->irq);
        /* Always tell the device, so the driver knows what is
           the real IRQ to use; the device does not use it. */
+#if 0  //+Bing modified 01132005
+       pcibios_update_irq(dev, irq);
+#else
+       if( irq != -1)
        pcibios_update_irq(dev, irq);
+#endif 
 }
 
 void __init