Skip to content

Commit

Permalink
[CPUFREQ] arch/x86/kernel/cpu/cpufreq: use for_each_pci_dev()
Browse files Browse the repository at this point in the history
Use for_each_pci_dev() to simplify the code.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Kulikov Vasiliy authored and Dave Jones committed Aug 3, 2010
1 parent 9c36f74 commit ccc5638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/cpufreq/gx-suspmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static __init struct pci_dev *gx_detect_chipset(void)
}

/* detect which companion chip is used */
while ((gx_pci = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, gx_pci)) != NULL) {
for_each_pci_dev(gx_pci) {
if ((pci_match_id(gx_chipset_tbl, gx_pci)) != NULL)
return gx_pci;
}
Expand Down

0 comments on commit ccc5638

Please sign in to comment.