Re: [RFT 2.6.9-rc1 alpha sys_sio.c] [2/2] convert pci_find_device to pci_get_device
From: Tonnerre
Date: Mon Sep 13 2004 - 19:34:29 EST
Salut,
On Mon, Sep 13, 2004 at 04:37:23PM -0700, Hanna Linder wrote:
> diff -Nrup linux-2.6.9-rc1/arch/alpha/kernel/sys_sio.c linux-2.6.9-rc1-alpha/arch/alpha/kernel/sys_sio.c
> --- linux-2.6.9-rc1/arch/alpha/kernel/sys_sio.c 2004-08-13 22:36:12.000000000 -0700
> +++ linux-2.6.9-rc1-alpha/arch/alpha/kernel/sys_sio.c 2004-09-13 16:04:58.135130904 -0700
> @@ -105,7 +105,7 @@ sio_collect_irq_levels(void)
> struct pci_dev *dev = NULL;
>
> /* Iterate through the devices, collecting IRQ levels. */
> - while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
> + while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
> if ((dev->class >> 16 == PCI_BASE_CLASS_BRIDGE) &&
> (dev->class >> 8 != PCI_CLASS_BRIDGE_PCMCIA))
> continue;
> @@ -229,7 +229,7 @@ alphabook1_init_pci(void)
> */
>
> dev = NULL;
> - while ((dev = pci_find_device(PCI_VENDOR_ID_NCR, PCI_ANY_ID, dev))) {
> + while ((dev = pci_get_device(PCI_VENDOR_ID_NCR, PCI_ANY_ID, dev))) {
> if (dev->device == PCI_DEVICE_ID_NCR_53C810
> || dev->device == PCI_DEVICE_ID_NCR_53C815
> || dev->device == PCI_DEVICE_ID_NCR_53C820
Don't we need to put these devices in some place?
Tonnerre
Attachment:
signature.asc
Description: Digital signature