diff options
author | Jon Smirl <jonsmirl@yahoo.com> | 2003-10-24 17:40:54 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@yahoo.com> | 2003-10-24 17:40:54 +0000 |
commit | e4a2a9c04024972f21cdf0620f6faa6de157686d (patch) | |
tree | 56765da8a6f9f04cbed27c9537395c0eae24b35f /linux-core | |
parent | 451a1d3f69a8d19c24382ef2b483517e9ef2c9f6 (diff) |
Switch pci enumeration call to work on both 2.4 and 2.6 pci_for_each_dev is
not supported on 2.6
Diffstat (limited to 'linux-core')
-rw-r--r-- | linux-core/drm_drv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/drm_drv.c b/linux-core/drm_drv.c index 93686f08..e0c00f02 100644 --- a/linux-core/drm_drv.c +++ b/linux-core/drm_drv.c @@ -633,7 +633,7 @@ static int DRM(probe)(struct pci_dev *pdev) */ static int __init drm_init( void ) { - struct pci_dev *pdev; + struct pci_dev *pdev = NULL; DRM_DEBUG( "\n" ); @@ -643,7 +643,7 @@ static int __init drm_init( void ) DRM(mem_init)(); - pci_for_each_dev(pdev) { + while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) { DRM(probe)(pdev); } return 0; |