Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39139
b: refs/heads/master
c: e24bb60
h: refs/heads/master
i:
  39137: e27507d
  39135: 2138684
v: v3
  • Loading branch information
Linus Torvalds committed Oct 8, 2006
1 parent 1312c91 commit e4de522
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 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: 0bae89ec8b1519dae67036637942f5b5bbaa9424
refs/heads/master: e24bb60e11e3fe9858b71874a4ac59333adbc4fc
17 changes: 6 additions & 11 deletions trunk/arch/powerpc/kernel/prom_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -914,17 +914,6 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq)
u8 pin;
int rc;

/* We need to first check if the PCI device has a PCI interrupt at all
* since we have cases where the device-node might expose non-PCI
* interrupts, but the device has no PCI interrupt to it
*/
rc = pci_read_config_byte(pdev, PCI_INTERRUPT_PIN, &pin);
if (rc != 0)
return rc;
/* No pin, exit */
if (pin == 0)
return -ENODEV;

/* Check if we have a device node, if yes, fallback to standard OF
* parsing
*/
Expand All @@ -936,6 +925,12 @@ int of_irq_map_pci(struct pci_dev *pdev, struct of_irq *out_irq)
* interrupt spec. we assume #interrupt-cells is 1, which is standard
* for PCI. If you do different, then don't use that routine.
*/
rc = pci_read_config_byte(pdev, PCI_INTERRUPT_PIN, &pin);
if (rc != 0)
return rc;
/* No pin, exit */
if (pin == 0)
return -ENODEV;

/* Now we walk up the PCI tree */
lspec = pin;
Expand Down

0 comments on commit e4de522

Please sign in to comment.