summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2005-11-06 23:39:33 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-09 12:13:15 -0800
commit3c94792f017c8c90d2ca84b0f4cd9c143471d5e3 (patch)
tree940243cc3a3afceb46d8986cfd033d6445504c10
parentd08fa1a22e4b7240ac081ba57a67ce8e8cf94cc7 (diff)
downloadlinux-stable-3c94792f017c8c90d2ca84b0f4cd9c143471d5e3.tar.gz
linux-stable-3c94792f017c8c90d2ca84b0f4cd9c143471d5e3.tar.bz2
linux-stable-3c94792f017c8c90d2ca84b0f4cd9c143471d5e3.zip
[PATCH] PCI: arch: pci_find_device remove (frv/mb93090-mb00/pci-irq.c)
Signed-off-by: Jiri Slaby <xslaby@fi.muni.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--arch/frv/mb93090-mb00/pci-irq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/frv/mb93090-mb00/pci-irq.c b/arch/frv/mb93090-mb00/pci-irq.c
index 24622d89b1ca..c4a1144c98b0 100644
--- a/arch/frv/mb93090-mb00/pci-irq.c
+++ b/arch/frv/mb93090-mb00/pci-irq.c
@@ -48,9 +48,7 @@ void __init pcibios_fixup_irqs(void)
struct pci_dev *dev = NULL;
uint8_t line, pin;
- while (dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev),
- dev != NULL
- ) {
+ for_each_pci_dev(dev) {
pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
if (pin) {
dev->irq = pci_bus0_irq_routing[PCI_SLOT(dev->devfn)][pin - 1];