As pci_find_device is going away soon I have converted this file to use pci_get_device instead. I have compile tested it. If anyone has this hardware and could test it that would be great. Hanna Linder IBM Linux Technology Center Signed-off-by: Hanna Linder Signed-off-by: Maximilian Attems --- Signed-off-by: Domen Puncer --- kj-domen/drivers/char/agp/generic.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/char/agp/generic.c~for-each-pci-dev-drivers_char_agp_generic drivers/char/agp/generic.c --- kj/drivers/char/agp/generic.c~for-each-pci-dev-drivers_char_agp_generic 2004-12-25 01:34:45.000000000 +0100 +++ kj-domen/drivers/char/agp/generic.c 2004-12-25 01:34:45.000000000 +0100 @@ -507,7 +507,7 @@ u32 agp_collect_device_status(u32 mode, u32 tmp; u32 agp3; - while ((device = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, device)) != NULL) { + for_each_pci_dev(device) { cap_ptr = pci_find_capability(device, PCI_CAP_ID_AGP); if (!cap_ptr) continue; @@ -551,7 +551,7 @@ void agp_device_command(u32 command, int if (agp_v3) mode *= 4; - 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); if (!agp) continue; _