#include <linux/acpi.h>
#include <linux/container.h>
#include "internal.h"
static const struct acpi_device_id container_device_ids[] = …;
#ifdef CONFIG_ACPI_CONTAINER
static int check_offline(struct acpi_device *adev, void *not_used)
{ … }
static int acpi_container_offline(struct container_dev *cdev)
{ … }
static void acpi_container_release(struct device *dev)
{ … }
static int container_device_attach(struct acpi_device *adev,
const struct acpi_device_id *not_used)
{ … }
static void container_device_detach(struct acpi_device *adev)
{ … }
static void container_device_online(struct acpi_device *adev)
{ … }
static struct acpi_scan_handler container_handler = …;
void __init acpi_container_init(void)
{ … }
#else
static struct acpi_scan_handler container_handler = {
.ids = container_device_ids,
};
void __init acpi_container_init(void)
{
acpi_scan_add_handler_with_hotplug(&container_handler, "container");
}
#endif