Commit ec8f3c84 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove pci_find_subsys() calls from acpi code.

Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 21e9448d
...@@ -213,11 +213,13 @@ acpi_processor_errata_piix4 ( ...@@ -213,11 +213,13 @@ acpi_processor_errata_piix4 (
* each IDE controller's DMA status to make sure we catch all * each IDE controller's DMA status to make sure we catch all
* DMA activity. * DMA activity.
*/ */
dev = pci_find_subsys(PCI_VENDOR_ID_INTEL, dev = pci_get_subsys(PCI_VENDOR_ID_INTEL,
PCI_DEVICE_ID_INTEL_82371AB, PCI_DEVICE_ID_INTEL_82371AB,
PCI_ANY_ID, PCI_ANY_ID, NULL); PCI_ANY_ID, PCI_ANY_ID, NULL);
if (dev) if (dev) {
errata.piix4.bmisx = pci_resource_start(dev, 4); errata.piix4.bmisx = pci_resource_start(dev, 4);
pci_dev_put(dev);
}
/* /*
* Type-F DMA * Type-F DMA
...@@ -228,7 +230,7 @@ acpi_processor_errata_piix4 ( ...@@ -228,7 +230,7 @@ acpi_processor_errata_piix4 (
* disable C3 support if this is enabled, as some legacy * disable C3 support if this is enabled, as some legacy
* devices won't operate well if fast DMA is disabled. * devices won't operate well if fast DMA is disabled.
*/ */
dev = pci_find_subsys(PCI_VENDOR_ID_INTEL, dev = pci_get_subsys(PCI_VENDOR_ID_INTEL,
PCI_DEVICE_ID_INTEL_82371AB_0, PCI_DEVICE_ID_INTEL_82371AB_0,
PCI_ANY_ID, PCI_ANY_ID, NULL); PCI_ANY_ID, PCI_ANY_ID, NULL);
if (dev) { if (dev) {
...@@ -236,6 +238,7 @@ acpi_processor_errata_piix4 ( ...@@ -236,6 +238,7 @@ acpi_processor_errata_piix4 (
pci_read_config_byte(dev, 0x77, &value2); pci_read_config_byte(dev, 0x77, &value2);
if ((value1 & 0x80) || (value2 & 0x80)) if ((value1 & 0x80) || (value2 & 0x80))
errata.piix4.fdma = 1; errata.piix4.fdma = 1;
pci_dev_put(dev);
} }
break; break;
...@@ -267,10 +270,12 @@ acpi_processor_errata ( ...@@ -267,10 +270,12 @@ acpi_processor_errata (
/* /*
* PIIX4 * PIIX4
*/ */
dev = pci_find_subsys(PCI_VENDOR_ID_INTEL, dev = pci_get_subsys(PCI_VENDOR_ID_INTEL,
PCI_DEVICE_ID_INTEL_82371AB_3, PCI_ANY_ID, PCI_ANY_ID, NULL); PCI_DEVICE_ID_INTEL_82371AB_3, PCI_ANY_ID, PCI_ANY_ID, NULL);
if (dev) if (dev) {
result = acpi_processor_errata_piix4(dev); result = acpi_processor_errata_piix4(dev);
pci_dev_put(dev);
}
return_VALUE(result); return_VALUE(result);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment