linux/drivers/acpi/container.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * container.c  - ACPI Generic Container Driver
 *
 * Copyright (C) 2004 Anil S Keshavamurthy ([email protected])
 * Copyright (C) 2004 Keiichiro Tokunaga ([email protected])
 * Copyright (C) 2004 Motoyuki Ito ([email protected])
 * Copyright (C) 2004 FUJITSU LIMITED
 * Copyright (C) 2004, 2013 Intel Corp.
 * Author: Rafael J. Wysocki <[email protected]>
 */
#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 /* CONFIG_ACPI_CONTAINER */