Commit 3b639183 authored by Wei Yongjun's avatar Wei Yongjun Committed by Linus Torvalds

mn10300: use for_each_pci_dev to simplify the code

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7630b661
...@@ -29,7 +29,7 @@ void __init pcibios_fixup_irqs(void) ...@@ -29,7 +29,7 @@ void __init pcibios_fixup_irqs(void)
struct pci_dev *dev = NULL; struct pci_dev *dev = NULL;
u8 line, pin; u8 line, pin;
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { for_each_pci_dev(dev) {
pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
if (pin) { if (pin) {
dev->irq = XIRQ1; dev->irq = XIRQ1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment