* [PATCH 4/5] Initialise pci_dev->irq correctly
@ 2005-11-22 5:19 Matthew Wilcox
0 siblings, 0 replies; only message in thread
From: Matthew Wilcox @ 2005-11-22 5:19 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton
Cc: Matthew Wilcox, Ingo Molnar, linux-kernel, Greg Kroah-Hartman, linux-pci
If the Interrupt Pin is 0, initialise the device's irq to NO_IRQ instead of
leaving it unset.
Signed-off-by: Matthew Wlcox <matthew@wil.cx>
---
drivers/pci/probe.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
applies-to: 3175f6d926ef8ff55ee1fd96364d5b3ed430fb38
4ec4e15bcdd7401cf1fb19ef1cd4f64eb064a4c7
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index fce2cb2..652095c 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -571,9 +571,12 @@ static void pci_read_irq(struct pci_dev
unsigned char irq;
pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &irq);
- if (irq)
+ if (irq) {
pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &irq);
- dev->irq = irq;
+ dev->irq = irq;
+ } else {
+ dev->irq = NO_IRQ;
+ }
}
/**
---
0.99.8.GIT
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-11-22 5:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-22 5:19 [PATCH 4/5] Initialise pci_dev->irq correctly Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®