@@ -97,7 +97,7 @@ EXPORT_SYMBOL_GPL(of_irq_parse_pci);
* @pin: PCI irq pin number; passed when used as map_irq callback. Unused
*
* @slot and @pin are unused, but included in the function so that this
- * function can be used directly as the map_irq callback to pci_fixup_irqs().
+ * function can be used directly as the map_irq callback to pdev_assign_irq().
*/
int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin)
{
@@ -31,7 +31,7 @@ void pdev_assign_irq(struct pci_dev *dev,
int irq = 0;
if (!map_irq) {
- dev_dbg(&dev->dev, "map_irq not provided by arch\n", dev->irq);
+ dev_dbg(&dev->dev, "runtime irq mapping not provided by arch\n");
return;
}
@@ -46,7 +46,7 @@ void pdev_assign_irq(struct pci_dev *dev,
if (pin > 4)
pin = 1;
- if (pin != 0) {
+ if (pin) {
/* Follow the chain of bridges, swizzling as we go. */
if(swizzle)
slot = (*swizzle)(dev, &pin);
@@ -57,7 +57,7 @@ void pdev_assign_irq(struct pci_dev *dev,
irq = 0;
}
- dev_dbg(&dev->dev, "fixup irq: got %d\n", dev->irq);
+ dev_dbg(&dev->dev, "assign irq: got %d\n", dev->irq);
dev->irq = irq;
/* Always tell the device, so the driver knows what is
the real IRQ to use; the device does not use it. */
From: matthew_minter <matthew_minter@xyratex.com> --- drivers/of/of_pci_irq.c | 2 +- drivers/pci/setup-irq.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)