aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorHanna V. Linder <hannal@us.ibm.com>2004-11-11 22:07:13 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-11-11 22:07:13 -0800
commit71ecb26216776346b9c5e1d120611425dd10d00d (patch)
treec8db3020b1300b8a4621a4ca3627ba0e29f2e6ff /sound
parent9acc8a779e27097263cc56dac1aecb511e0b4154 (diff)
downloadhistory-71ecb26216776346b9c5e1d120611425dd10d00d.tar.gz
[PATCH] cmipci.c: convert pci_find_device to pci_get_device
As pci_find_device is going away I've replaced it with pci_get_device. Signed-off-by: Hanna Linder <hannal@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/cmipci.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/pci/cmipci.c b/sound/pci/cmipci.c
index f40f9b931c70d3..02864e938555a6 100644
--- a/sound/pci/cmipci.c
+++ b/sound/pci/cmipci.c
@@ -2572,6 +2572,10 @@ static int __devinit snd_cmipci_create(snd_card_t *card, struct pci_dev *pci,
long iomidi = mpu_port[dev];
long iosynth = fm_port[dev];
int pcm_index, pcm_spdif_index;
+ static struct pci_device_id intel_82437vx[] = {
+ { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437VX) },
+ { },
+ };
*rcmipci = NULL;
@@ -2647,8 +2651,7 @@ static int __devinit snd_cmipci_create(snd_card_t *card, struct pci_dev *pci,
switch (pci->device) {
case PCI_DEVICE_ID_CMEDIA_CM8738:
case PCI_DEVICE_ID_CMEDIA_CM8738B:
- /* PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82437VX */
- if (! pci_find_device(0x8086, 0x7030, NULL))
+ if (!pci_dev_present(intel_82437vx))
snd_cmipci_set_bit(cm, CM_REG_MISC_CTRL, CM_TXVX);
break;
default: