Update of /cvsroot/alsa/alsa-kernel/pci In directory sc8-pr-cvs1:/tmp/cvs-serv26965
Modified Files: cmipci.c Log Message: Fixed wrong usage of pci_for_each_dev Index: cmipci.c =================================================================== RCS file: /cvsroot/alsa/alsa-kernel/pci/cmipci.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- cmipci.c 3 Jan 2003 09:44:20 -0000 1.37 +++ cmipci.c 6 Jan 2003 13:38:31 -0000 1.38 @@ -2949,13 +2949,12 @@ /* Assume TX and compatible chip set (Autodetection required for VX chip sets) */ switch (pci->device) { - struct list_head *pos; + struct pci_dev *cur; int txvx; case PCI_DEVICE_ID_CMEDIA_CM8738: case PCI_DEVICE_ID_CMEDIA_CM8738B: txvx = 1; - pci_for_each_dev(pos) { - struct pci_dev * cur = list_entry(pos, struct pci_dev, global_list); + pci_for_each_dev(cur) { if (cur->vendor != 0x8086) /* PCI_VENDOR_ID_INTEL */ continue; if (cur->device != 0x7030) /* PCI_DEVICE_ID_INTEL_82437VX */ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-cvslog