1
0
Fork 0

[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>
hifive-unleashed-5.1
Alan Cox 2006-09-30 23:27:27 -07:00 committed by Linus Torvalds
parent 14fef6414b
commit a78b464a28
1 changed files with 2 additions and 1 deletions

View File

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