diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-02-21 19:42:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-21 20:22:16 -0500 |
commit | 3b6391834d0aa87a15e2d3997537933cafe185bd (patch) | |
tree | 1b93af5b072bcaaed3d01ec4f954db3b47a80019 /arch/mn10300/unit-asb2305 | |
parent | 7630b661da330b35dd57b6f5d6d62b386f2dd751 (diff) |
mn10300: use for_each_pci_dev to simplify the code
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mn10300/unit-asb2305')
-rw-r--r-- | arch/mn10300/unit-asb2305/pci-irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mn10300/unit-asb2305/pci-irq.c b/arch/mn10300/unit-asb2305/pci-irq.c index 91212ea71e69..77439da04671 100644 --- a/arch/mn10300/unit-asb2305/pci-irq.c +++ b/arch/mn10300/unit-asb2305/pci-irq.c | |||
@@ -29,7 +29,7 @@ void __init pcibios_fixup_irqs(void) | |||
29 | struct pci_dev *dev = NULL; | 29 | struct pci_dev *dev = NULL; |
30 | u8 line, pin; | 30 | u8 line, pin; |
31 | 31 | ||
32 | while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { | 32 | for_each_pci_dev(dev) { |
33 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); | 33 | pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); |
34 | if (pin) { | 34 | if (pin) { |
35 | dev->irq = XIRQ1; | 35 | dev->irq = XIRQ1; |