Messages in this thread Patch in this message | | | Subject | Re: [PATCH] PCI fixes for 2.6.10-rc1 | Date | Fri, 12 Nov 2004 15:21:59 -0800 | From | Greg KH <> |
| |
ChangeSet 1.2091.1.11, 2004/11/12 14:07:33-08:00, hannal@us.ibm.com
[PATCH] drm_drv.h: replace pci_find_device
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.
Signed-off-by: Hanna Linder <hannal@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/char/drm/drm_drv.h | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-)
diff -Nru a/drivers/char/drm/drm_drv.h b/drivers/char/drm/drm_drv.h --- a/drivers/char/drm/drm_drv.h 2004-11-12 15:10:42 -08:00 +++ b/drivers/char/drm/drm_drv.h 2004-11-12 15:10:42 -08:00 @@ -556,9 +556,8 @@ 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; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |