提交 a78b464a 编写于 作者: A Alan Cox 提交者: Linus Torvalds

[PATCH] cs46xx OSS: switch to pci_get_device

Fairly trivial change in this case
Signed-off-by: NAlan Cox <alan@redhat.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 14fef641
...@@ -2982,7 +2982,7 @@ static void clkrun_hack(struct cs_card *card, int change) ...@@ -2982,7 +2982,7 @@ static void clkrun_hack(struct cs_card *card, int change)
card->active+=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) if (acpi_dev == NULL)
return; /* Not a thinkpad thats for sure */ return; /* Not a thinkpad thats for sure */
...@@ -3008,6 +3008,7 @@ static void clkrun_hack(struct cs_card *card, int change) ...@@ -3008,6 +3008,7 @@ static void clkrun_hack(struct cs_card *card, int change)
change,card->active)); change,card->active));
outw(control&~0x2000, port+0x10); outw(control&~0x2000, port+0x10);
} }
pci_dev_put(acpi_dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册