ACPI / hotplug: Rework deferred execution of acpi_device_hotplug()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 2 Mar 2014 23:40:38 +0000 (00:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 5 Mar 2014 00:26:35 +0000 (01:26 +0100)
commit1e3bcb596c6b1cf6db93f8f506e2de260e771bad
tree376eec12f3237da51dcb199f21aacbb06a6afaae
parent8cc2568124ad599a60024d5b410ba812a0b0917a
ACPI / hotplug: Rework deferred execution of acpi_device_hotplug()

Since the only function executed by acpi_hotplug_execute() is
acpi_device_hotplug() and it only is called by the ACPI core,
simplify its definition so that it only takes two arguments, the
ACPI device object pointer and event code, rename it to
acpi_hotplug_schedule() and move its header from acpi_bus.h to
the ACPI core's internal header file internal.h.  Modify the
definition of acpi_device_hotplug() so that its first argument is
an ACPI device object pointer and modify the definition of
struct acpi_hp_work accordingly.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/bus.c
drivers/acpi/internal.h
drivers/acpi/osl.c
drivers/acpi/scan.c
include/acpi/acpi_bus.h