[PATCH 2.6.9-rc2-mm4 cmipci.c] [8/8] Replace pci_find_device with pci_dev_present
From: Hanna Linder (hannal_at_us.ibm.com)
Date: 09/30/04
- Previous message: Eric Anholt: "Re: New DRM driver model - gets rid of DRM() macros!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 29 Sep 2004 17:08:17 -0700 To: linux-kernel@vger.kernel.org
The pci_find_device function is going away so I have replace it with pci_dev_present.
I also just used the macros it should have been using in the first place. I have compile tested it.
Hanna Linder
IBM Linux Technology Center
Signed-off-by: Hanna Linder <hannal@us.ibm.com>
---
diff -Nrup linux-2.6.9-rc2-mm4cln/sound/pci/cmipci.c linux-2.6.9-rc2-mm4patch2/sound/pci/cmipci.c
--- linux-2.6.9-rc2-mm4cln/sound/pci/cmipci.c 2004-09-12 22:32:55.000000000 -0700
+++ linux-2.6.9-rc2-mm4patch2/sound/pci/cmipci.c 2004-09-29 16:32:30.000000000 -0700
@@ -2573,6 +2573,10 @@ static int __devinit snd_cmipci_create(s
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;
@@ -2648,8 +2652,7 @@ static int __devinit snd_cmipci_create(s
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:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Eric Anholt: "Re: New DRM driver model - gets rid of DRM() macros!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: [PATCH 2.6.5] Add class support to drivers/char/ip2main.c
... Hanna Linder ... IBM Linux Technology Center ... +static struct
class_simple *ip2_class; ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [Kernel-janitors] [PATCH 2.6][1/12] arch/ppc/kernel/pci.c replace pci_find_device with pci_get_d
... Hanna Linder ... IBM Linux Technology Center ... struct resource
*r; ... send the line "unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: [PATCH 2.6.9-rc1-mm5 acpi.c] Changed pci_find_device to pci_get_device
... > I was able to compile and boot this patch to verify it didn't break anything ...
> Hanna Linder ... > IBM Linux Technology Center ... send the line
"unsubscribe linux-kernel" in ... (Linux-Kernel) - [PATCH 2.6] hades-pci.c: replace pci_find_device with pci_get_device
... If anyone has access to a Hades Atari clone to test this one I would appreciate it..
... Hanna Linder ... IBM Linux Technology Center ... send the line
"unsubscribe linux-kernel" in ... (Linux-Kernel) - [PATCH 2.6] hw_random.c: replace pci_find_device
... If someone with this hardware could test it I would appreciate it. ... Hanna
Linder ... IBM Linux Technology Center ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel)