Commit 3b6391834d0aa87a15e2d3997537933cafe185bd

Authored by Wei Yongjun
Committed by Linus Torvalds
1 parent 7630b661da

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/mn10300/unit-asb2305/pci-irq.c
... ... @@ -29,7 +29,7 @@
29 29 struct pci_dev *dev = NULL;
30 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 33 pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin);
34 34 if (pin) {
35 35 dev->irq = XIRQ1;