ChangeSet 1.1254.4.14, 2003/06/04 12:30:15-07:00, greg@kroah.com

[PATCH] PCI: remove usage of pci_for_each_dev() in sound/oss/maestro.c


 sound/oss/maestro.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


diff -Nru a/sound/oss/maestro.c b/sound/oss/maestro.c
--- a/sound/oss/maestro.c	Wed Jun  4 18:11:23 2003
+++ b/sound/oss/maestro.c	Wed Jun  4 18:11:23 2003
@@ -2132,10 +2132,10 @@
 {
 	unsigned int minor = minor(inode->i_rdev);
 	struct ess_card *card = NULL;
-	struct pci_dev *pdev;
+	struct pci_dev *pdev = NULL;
 	struct pci_driver *drvr;
 
-	pci_for_each_dev(pdev) {
+	while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
 		drvr = pci_dev_driver (pdev);
 		if (drvr == &maestro_pci_driver) {
 			card = (struct ess_card*)pci_get_drvdata (pdev);
@@ -2978,13 +2978,13 @@
 	unsigned int minor = minor(inode->i_rdev);
 	struct ess_state *s = NULL;
 	unsigned char fmtm = ~0, fmts = 0;
-	struct pci_dev *pdev;
+	struct pci_dev *pdev = NULL;
 	/*
 	 *	Scan the cards and find the channel. We only
 	 *	do this at open time so it is ok
 	 */
 
-	pci_for_each_dev(pdev) {
+	while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) != NULL) {
 		struct ess_card *c;
 		struct pci_driver *drvr;