[PATCH] longhaul pci_find_device -> pci_get_device conversion (was:Re: 2.6.21-rc2-mm1)

From: Michal Piotrowski
Date: Fri Mar 02 2007 - 11:21:15 EST


Hi Dave,

Andrew Morton napisaÅ(a):
> Temporarily at
>
> http://userweb.kernel.org/~akpm/2.6.21-rc2-mm1/
>

CC [M] arch/i386/kernel/cpu/cpufreq/longhaul.o
arch/i386/kernel/cpu/cpufreq/longhaul.c: In function 'enable_arbiter_disable':
arch/i386/kernel/cpu/cpufreq/longhaul.c:598: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:485)
arch/i386/kernel/cpu/cpufreq/longhaul.c:602: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:485)
arch/i386/kernel/cpu/cpufreq/longhaul.c:605: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:485)
arch/i386/kernel/cpu/cpufreq/longhaul.c: In function 'longhaul_setup_vt8235':
arch/i386/kernel/cpu/cpufreq/longhaul.c:632: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:485)

Regards,
Michal

--
Michal K. K. Piotrowski
LTG - Linux Testers Group (PL)
(http://www.stardust.webpages.pl/ltg/)
LTG - Linux Testers Group (EN)
(http://www.stardust.webpages.pl/linux_testers_group_en/)

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@xxxxxxxxx>

--- linux-mm/arch/i386/kernel/cpu/cpufreq/longhaul.c 2007-03-02 15:15:51.000000000 +0100
+++ linux-work/arch/i386/kernel/cpu/cpufreq/longhaul.c 2007-03-02 17:12:46.000000000 +0100
@@ -595,14 +595,14 @@ static int enable_arbiter_disable(void)

/* Find PLE133 host bridge */
reg = 0x78;
- dev = pci_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8601_0, NULL);
+ dev = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8601_0, NULL);
/* Find CLE266 host bridge */
if (dev == NULL) {
reg = 0x76;
- dev = pci_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_862X_0, NULL);
+ dev = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_862X_0, NULL);
/* Find CN400 V-Link host bridge */
if (dev == NULL)
- dev = pci_find_device(PCI_VENDOR_ID_VIA, 0x7259, NULL);
+ dev = pci_get_device(PCI_VENDOR_ID_VIA, 0x7259, NULL);

}
if (dev != NULL) {
@@ -629,7 +629,7 @@ static int longhaul_setup_vt8235(void)
u8 pci_cmd;

/* Find VT8235 southbridge */
- dev = pci_find_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, NULL);
+ dev = pci_get_device(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, NULL);
if (dev != NULL) {
/* Set transition time to max */
pci_read_config_byte(dev, 0xec, &pci_cmd);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/