Commit ccc5638a authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by Dave Jones

[CPUFREQ] arch/x86/kernel/cpu/cpufreq: use for_each_pci_dev()

Use for_each_pci_dev() to simplify the code.
Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 9c36f746
...@@ -199,7 +199,7 @@ static __init struct pci_dev *gx_detect_chipset(void) ...@@ -199,7 +199,7 @@ static __init struct pci_dev *gx_detect_chipset(void)
} }
/* detect which companion chip is used */ /* 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) if ((pci_match_id(gx_chipset_tbl, gx_pci)) != NULL)
return gx_pci; return gx_pci;
} }
......
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