diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-12-20 18:36:46 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-03 07:09:39 -0500 |
commit | 02f57c67a8677ae55dcdd256a2a7abaf41e4cc1f (patch) | |
tree | de2b6f73409a459119641fd8359694f0367f8f50 /drivers/acpi/container.c | |
parent | 47525cda88f5cc4dbe24de1cc05617c08e2d7c4a (diff) |
ACPI: Remove acpi_start_single_object() and acpi_bus_start()
The ACPI PCI root bridge driver was the only ACPI driver implementing
the .start() callback, which isn't used by any ACPI drivers any more
now.
For this reason, acpi_start_single_object() has no purpose any more,
so remove it and all references to it. Also remove
acpi_bus_start_device(), whose only purpose was to call
acpi_start_single_object().
Moreover, since after the removal of acpi_bus_start_device() the
only purpose of acpi_bus_start() remains to call
acpi_update_all_gpes(), move that into acpi_bus_add() and drop
acpi_bus_start() too, remove its header from acpi_bus.h and
update all of its former users accordingly.
This change was previously proposed in a different from by
Yinghai Lu.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/acpi/container.c')
-rw-r--r-- | drivers/acpi/container.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c index 811910b50b75..98b85e3e4781 100644 --- a/drivers/acpi/container.c +++ b/drivers/acpi/container.c | |||
@@ -139,24 +139,14 @@ static int container_device_add(struct acpi_device **device, acpi_handle handle) | |||
139 | { | 139 | { |
140 | acpi_handle phandle; | 140 | acpi_handle phandle; |
141 | struct acpi_device *pdev; | 141 | struct acpi_device *pdev; |
142 | int result; | ||
143 | |||
144 | |||
145 | if (acpi_get_parent(handle, &phandle)) { | ||
146 | return -ENODEV; | ||
147 | } | ||
148 | 142 | ||
149 | if (acpi_bus_get_device(phandle, &pdev)) { | 143 | if (acpi_get_parent(handle, &phandle)) |
150 | return -ENODEV; | 144 | return -ENODEV; |
151 | } | ||
152 | 145 | ||
153 | if (acpi_bus_add(device, pdev, handle, ACPI_BUS_TYPE_DEVICE)) { | 146 | if (acpi_bus_get_device(phandle, &pdev)) |
154 | return -ENODEV; | 147 | return -ENODEV; |
155 | } | ||
156 | |||
157 | result = acpi_bus_start(*device); | ||
158 | 148 | ||
159 | return result; | 149 | return acpi_bus_add(device, pdev, handle, ACPI_BUS_TYPE_DEVICE); |
160 | } | 150 | } |
161 | 151 | ||
162 | static void container_notify_cb(acpi_handle handle, u32 type, void *context) | 152 | static void container_notify_cb(acpi_handle handle, u32 type, void *context) |