Skip to content

Commit

Permalink
[PATCH] cs46xx OSS: switch to pci_get_device
Browse files Browse the repository at this point in the history
Fairly trivial change in this case

Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 1, 2006
1 parent 14fef64 commit a78b464
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/oss/cs46xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand All @@ -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);
}


Expand Down

0 comments on commit a78b464

Please sign in to comment.