From: Alan Cox Date: Sun, 1 Oct 2006 06:27:28 +0000 (-0700) Subject: [PATCH] piix: Use refcounted interface when searching for a 450NX X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1424e5044882f92b8c51540033b229723e1f2651;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] piix: Use refcounted interface when searching for a 450NX Simple conversion Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/pci/piix.c b/drivers/ide/pci/piix.c index 50332ddd5dd..eb5bab1890c 100644 --- a/drivers/ide/pci/piix.c +++ b/drivers/ide/pci/piix.c @@ -615,7 +615,7 @@ static void __devinit piix_check_450nx(void) struct pci_dev *pdev = NULL; u16 cfg; u8 rev; - while((pdev=pci_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454NX, pdev))!=NULL) + while((pdev=pci_get_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454NX, pdev))!=NULL) { /* Look for 450NX PXB. Check for problem configurations A PCI quirk checks bit 6 already */