As pci_find_device is going away I've replaced it with pci_get_device. for_each_pci_dev is a macro wrapper around pci_get_device. If someone with this hardware could test it I would appreciate it.
Thanks. Hanna Linder IBM Linux Technology Center Signed-off-by: Hanna Linder <[EMAIL PROTECTED]> --- diff -Nrup linux-2.6.9cln/drivers/char/drm/drm_drv.h linux-2.6.9patch2/drivers/char/drm/drm_drv.h --- linux-2.6.9cln/drivers/char/drm/drm_drv.h 2004-10-18 16:35:52.000000000 -0700 +++ linux-2.6.9patch2/drivers/char/drm/drm_drv.h 2004-10-20 14:51:17.000000000 -0700 @@ -556,9 +556,8 @@ static int __init drm_init( void ) DRM(mem_init)(); - while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) { + for_each_pci_dev(pdev) DRM(probe)(pdev); - } return 0; } ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel