From: Alan Cox Date: Sun, 1 Oct 2006 06:27:27 +0000 (-0700) Subject: [PATCH] cs46xx OSS: switch to pci_get_device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a78b464a283e55feb286647d9662f5cb8f235500;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] cs46xx OSS: switch to pci_get_device Fairly trivial change in this case Signed-off-by: Alan Cox Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/sound/oss/cs46xx.c b/sound/oss/cs46xx.c index 3f81b79afbaa..43193581f836 100644 --- a/sound/oss/cs46xx.c +++ b/sound/oss/cs46xx.c @@ -2982,7 +2982,7 @@ static void clkrun_hack(struct cs_card *card, int change) card->active+=change; - acpi_dev = pci_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, NULL); + acpi_dev = pci_get_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, NULL); if (acpi_dev == NULL) return; /* Not a thinkpad thats for sure */ @@ -3008,6 +3008,7 @@ static void clkrun_hack(struct cs_card *card, int change) change,card->active)); outw(control&~0x2000, port+0x10); } + pci_dev_put(acpi_dev); }