diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2004-10-05 21:17:47 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-10-05 21:17:47 -0700 |
| commit | ec8f3c8405d7bc56a37250dd2025f53c70cc6153 (patch) | |
| tree | dd6c3f75290bafe208b3d5ff6af0c457b1fd4d7d | |
| parent | 21e9448dce5e219012e5c628f0422373abd2227e (diff) | |
[PATCH] PCI: remove pci_find_subsys() calls from acpi code.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
| -rw-r--r-- | drivers/acpi/processor.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/acpi/processor.c b/drivers/acpi/processor.c index 83fb743aa3e7..27b8523db88e 100644 --- a/drivers/acpi/processor.c +++ b/drivers/acpi/processor.c @@ -213,11 +213,13 @@ acpi_processor_errata_piix4 ( * each IDE controller's DMA status to make sure we catch all * DMA activity. */ - dev = pci_find_subsys(PCI_VENDOR_ID_INTEL, + dev = pci_get_subsys(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB, PCI_ANY_ID, PCI_ANY_ID, NULL); - if (dev) + if (dev) { errata.piix4.bmisx = pci_resource_start(dev, 4); + pci_dev_put(dev); + } /* * Type-F DMA @@ -228,7 +230,7 @@ acpi_processor_errata_piix4 ( * disable C3 support if this is enabled, as some legacy * 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_ANY_ID, PCI_ANY_ID, NULL); if (dev) { @@ -236,6 +238,7 @@ acpi_processor_errata_piix4 ( pci_read_config_byte(dev, 0x77, &value2); if ((value1 & 0x80) || (value2 & 0x80)) errata.piix4.fdma = 1; + pci_dev_put(dev); } break; @@ -267,10 +270,12 @@ acpi_processor_errata ( /* * 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); - if (dev) + if (dev) { result = acpi_processor_errata_piix4(dev); + pci_dev_put(dev); + } return_VALUE(result); } |
