Skip to contentSkip to conversation

sound/core/ remove pci_find_{device, subsys}

PATCH In review Amit Gud 2 participants 2 messages Feb 14, 2005

Subsystems (2)
lore
Share & tools
lore

Amit Gud

author
#0 lore raw

PATCH 15/18 sound/core/ remove pci_find_{device, subsys}

Remove deprecated pci_find_device and pci_find_subsys

Do consider applying.

sound/core/memalloc.c +1 -1
diff -uprN orig/sound/core/memalloc.c linux-2.6.11-rc3/sound/core/memalloc.c
@@ -552,7 +552,7 @@ static void __init preallocate_cards(voi
 
 	card = 0;
 
-	while ((pci = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
+	while ((pci = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
 		struct prealloc_dev *dev;
 		unsigned int i;
 		if (card >= SNDRV_CARDS)

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors

#1 lore raw
Quoted 11 lines · Amit Gud

Remove deprecated pci_find_device and pci_find_subsys

Do consider applying.

diff -uprN orig/sound/core/memalloc.c linux-2.6.11-rc3/sound/core/memalloc.c

sound/core/memalloc.c static void __init preallocate_cards(voi · line 558

Quoted 8 lines
sound/core/memalloc.c +1 -1
@@ -552,7 +552,7 @@ static void __init preallocate_cards(voi
 
 	card = 0;
 
-	while ((pci = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
+	while ((pci = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, pci)) != NULL) {
 		struct prealloc_dev *dev;
 		unsigned int i;
 		if (card >= SNDRV_CARDS)

No, please do not apply this, it is incorrect.

thanks,

greg k-h

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors