diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-10-01 02:27:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:20 -0400 |
commit | a78b464a283e55feb286647d9662f5cb8f235500 (patch) | |
tree | ec74042bb601105c8d38d96e1a4b9facf79c27b1 /sound/oss/cs46xx.c | |
parent | 14fef6414be49d59f4784eeef8d9c3f468993205 (diff) |
[PATCH] cs46xx OSS: switch to pci_get_device
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>
Diffstat (limited to 'sound/oss/cs46xx.c')
-rw-r--r-- | sound/oss/cs46xx.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
2982 | 2982 | ||
2983 | card->active+=change; | 2983 | card->active+=change; |
2984 | 2984 | ||
2985 | acpi_dev = pci_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, NULL); | 2985 | acpi_dev = pci_get_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, NULL); |
2986 | if (acpi_dev == NULL) | 2986 | if (acpi_dev == NULL) |
2987 | return; /* Not a thinkpad thats for sure */ | 2987 | return; /* Not a thinkpad thats for sure */ |
2988 | 2988 | ||
@@ -3008,6 +3008,7 @@ static void clkrun_hack(struct cs_card *card, int change) | |||
3008 | change,card->active)); | 3008 | change,card->active)); |
3009 | outw(control&~0x2000, port+0x10); | 3009 | outw(control&~0x2000, port+0x10); |
3010 | } | 3010 | } |
3011 | pci_dev_put(acpi_dev); | ||
3011 | } | 3012 | } |
3012 | 3013 | ||
3013 | 3014 | ||