Re: [PATCH] include: pci_find_device remove (include/asm-i386/ide.h)

Jeff Garzik
2005-09-10T20:55:26Z

Jiri Slaby wrote:
> diff --git a/include/asm-i386/ide.h b/include/asm-i386/ide.h
> --- a/include/asm-i386/ide.h
> +++ b/include/asm-i386/ide.h
> @@ -41,7 +41,12 @@ static __inline__ int ide_default_irq(un
>
> static __inline__ unsigned long ide_default_io_base(int index)
> {
> - if (pci_find_device(PCI_ANY_ID, PCI_ANY_ID, NULL) == NULL) {
> + struct pci_dev *pdev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, NULL);
> + unsigned int a = !pdev;
> +
> + pci_dev_put(pdev);

Looks like we need to resurrect pci_present() from the ancient past.

Jeff