aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorAlexander Chiang <achiang@hp.com>2009-06-10 15:55:55 -0400
committerLen Brown <len.brown@intel.com>2009-06-17 23:32:23 -0400
commit80ffdedf6020a77adcd06c01cfe6c488312b28f8 (patch)
treefd18ffe05df0c5c8b566eedb90482ab2b846cf4d /drivers/acpi
parentd6aa484c1c0cd39ff3a42f4050b55d2a5b285ef5 (diff)
ACPI: kill acpi_get_pci_id
acpi_get_pci_dev() is better, and all callers have been converted, so eliminate acpi_get_pci_id(). 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>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/pci_bind.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/drivers/acpi/pci_bind.c b/drivers/acpi/pci_bind.c
index a205769f1d00..a5a77b78a723 100644
--- a/drivers/acpi/pci_bind.c
+++ b/drivers/acpi/pci_bind.c
@@ -33,77 +33,6 @@
33#define _COMPONENT ACPI_PCI_COMPONENT 33#define _COMPONENT ACPI_PCI_COMPONENT
34ACPI_MODULE_NAME("pci_bind"); 34ACPI_MODULE_NAME("pci_bind");
35 35
36struct acpi_pci_data {
37 struct acpi_pci_id id;
38 struct pci_bus *bus;
39 struct pci_dev *dev;
40};
41
42static int acpi_pci_bind(struct acpi_device *device);
43static int acpi_pci_unbind(struct acpi_device *device);
44
45static void acpi_pci_data_handler(acpi_handle handle, u32 function,
46 void *context)
47{
48
49 /* TBD: Anything we need to do here? */
50
51 return;
52}
53
54/**
55 * acpi_get_pci_id
56 * ------------------
57 * This function is used by the ACPI Interpreter (a.k.a. Core Subsystem)
58 * to resolve PCI information for ACPI-PCI devices defined in the namespace.
59 * This typically occurs when resolving PCI operation region information.
60 */
61acpi_status acpi_get_pci_id(acpi_handle handle, struct acpi_pci_id *id)
62{
63 int result = 0;
64 acpi_status status = AE_OK;
65 struct acpi_device *device = NULL;
66 struct acpi_pci_data *data = NULL;
67
68
69 if (!id)
70 return AE_BAD_PARAMETER;
71
72 result = acpi_bus_get_device(handle, &device);
73 if (result) {
74 printk(KERN_ERR PREFIX
75 "Invalid ACPI Bus context for device %s\n",
76 acpi_device_bid(device));
77 return AE_NOT_EXIST;
78 }
79
80 status = acpi_get_data(handle, acpi_pci_data_handler, (void **)&data);
81 if (ACPI_FAILURE(status) || !data) {
82 ACPI_EXCEPTION((AE_INFO, status,
83 "Invalid ACPI-PCI context for device %s",
84 acpi_device_bid(device)));
85 return status;
86 }
87
88 *id = data->id;
89
90 /*
91 id->segment = data->id.segment;
92 id->bus = data->id.bus;
93 id->device = data->id.device;
94 id->function = data->id.function;
95 */
96
97 ACPI_DEBUG_PRINT((ACPI_DB_INFO,
98 "Device %s has PCI address %04x:%02x:%02x.%d\n",
99 acpi_device_bid(device), id->segment, id->bus,
100 id->device, id->function));
101
102 return AE_OK;
103}
104
105EXPORT_SYMBOL(acpi_get_pci_id);
106
107static int acpi_pci_unbind(struct acpi_device *device) 36static int acpi_pci_unbind(struct acpi_device *device)
108{ 37{
109 struct pci_dev *dev; 38 struct pci_dev *dev;