Commit 562c0074 authored by Hanna V. Linder's avatar Hanna V. Linder Committed by Greg Kroah-Hartman

[PATCH] sis-agp.c: replace pci_find_device with pci_get_device

As pci_find_device is going away soon I have converted this file to use
pci_get_device instead. for_each_pci_dev is a macro wrapper around
pci_get_device.
Signed-off-by: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 6be9f519
...@@ -86,7 +86,7 @@ static void sis_delayed_enable(u32 mode) ...@@ -86,7 +86,7 @@ static void sis_delayed_enable(u32 mode)
command |= AGPSTAT_AGP_ENABLE; command |= AGPSTAT_AGP_ENABLE;
rate = (command & 0x7) << 2; rate = (command & 0x7) << 2;
while ((device = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, device)) != NULL) { for_each_pci_dev(device) {
u8 agp = pci_find_capability(device, PCI_CAP_ID_AGP); u8 agp = pci_find_capability(device, PCI_CAP_ID_AGP);
if (!agp) if (!agp)
continue; continue;
......
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