Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81128
b: refs/heads/master
c: 54a24cb
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Dec 20, 2007
1 parent 14ded0b commit ec31782
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 553aa7659bc0e188348f64e978343ed984eb6e56
refs/heads/master: 54a24cbbd0184faffc37c39cd3a896f4ddac3e03
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/kernel/pci-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,11 @@ int pci_read_irq_line(struct pci_dev *pci_dev)
if (pin == 0)
return -1;
if (pci_read_config_byte(pci_dev, PCI_INTERRUPT_LINE, &line) ||
line == 0xff) {
line == 0xff || line == 0) {
return -1;
}
DBG(" -> no map ! Using irq line %d from PCI config\n", line);
DBG(" -> no map ! Using line %d (pin %d) from PCI config\n",
line, pin);

virq = irq_create_mapping(NULL, line);
if (virq != NO_IRQ)
Expand Down

0 comments on commit ec31782

Please sign in to comment.