Commit 7fe2a6c275a5bcec52fb3ef643daaf8265b7af0d
Committed by
Len Brown
1 parent
1e4cffe78e
Exists in
master
and in
7 other branches
ACPI: kill acpi_get_physical_pci_device()
acpi_get_pci_dev() is (hopefully) better, and all callers have been converted, so let's get rid of this duplicated functionality. Cc: Thomas Renninger <trenn@suse.de> Signed-off-by: Alex Chiang <achiang@hp.com> Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
Showing 2 changed files with 0 additions and 41 deletions Side-by-side Diff
drivers/acpi/glue.c
... | ... | @@ -140,46 +140,6 @@ |
140 | 140 | |
141 | 141 | EXPORT_SYMBOL(acpi_get_physical_device); |
142 | 142 | |
143 | -/* ToDo: When a PCI bridge is found, return the PCI device behind the bridge | |
144 | - * This should work in general, but did not on a Lenovo T61 for the | |
145 | - * graphics card. But this must be fixed when the PCI device is | |
146 | - * bound and the kernel device struct is attached to the acpi device | |
147 | - * Note: A success call will increase reference count by one | |
148 | - * Do call put_device(dev) on the returned device then | |
149 | - */ | |
150 | -struct device *acpi_get_physical_pci_device(acpi_handle handle) | |
151 | -{ | |
152 | - struct device *dev; | |
153 | - long long device_id; | |
154 | - acpi_status status; | |
155 | - | |
156 | - status = | |
157 | - acpi_evaluate_integer(handle, "_ADR", NULL, &device_id); | |
158 | - | |
159 | - if (ACPI_FAILURE(status)) | |
160 | - return NULL; | |
161 | - | |
162 | - /* We need to attempt to determine whether the _ADR refers to a | |
163 | - PCI device or not. There's no terribly good way to do this, | |
164 | - so the best we can hope for is to assume that there'll never | |
165 | - be a device in the host bridge */ | |
166 | - if (device_id >= 0x10000) { | |
167 | - /* It looks like a PCI device. Does it exist? */ | |
168 | - dev = acpi_get_physical_device(handle); | |
169 | - } else { | |
170 | - /* It doesn't look like a PCI device. Does its parent | |
171 | - exist? */ | |
172 | - acpi_handle phandle; | |
173 | - if (acpi_get_parent(handle, &phandle)) | |
174 | - return NULL; | |
175 | - dev = acpi_get_physical_device(phandle); | |
176 | - } | |
177 | - if (!dev) | |
178 | - return NULL; | |
179 | - return dev; | |
180 | -} | |
181 | -EXPORT_SYMBOL(acpi_get_physical_pci_device); | |
182 | - | |
183 | 143 | static int acpi_bind_one(struct device *dev, acpi_handle handle) |
184 | 144 | { |
185 | 145 | struct acpi_device *acpi_dev; |
include/acpi/acpi_bus.h
... | ... | @@ -365,7 +365,6 @@ |
365 | 365 | int register_acpi_bus_type(struct acpi_bus_type *); |
366 | 366 | int unregister_acpi_bus_type(struct acpi_bus_type *); |
367 | 367 | struct device *acpi_get_physical_device(acpi_handle); |
368 | -struct device *acpi_get_physical_pci_device(acpi_handle); | |
369 | 368 | |
370 | 369 | /* helper */ |
371 | 370 | acpi_handle acpi_get_child(acpi_handle, acpi_integer); |