summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@linux.intel.com>2006-12-07 13:56:23 +0100
committerLen Brown <len.brown@intel.com>2006-12-16 05:38:34 +0100
commitd43ec68e9837dfa6618ab473622683fdbf6e68a9 (patch)
tree4de061cb0d21bea939ba3ff549785dd4b0dc6f48 /drivers/acpi
parentACPI: rename some functions (diff)
downloadlinux-d43ec68e9837dfa6618ab473622683fdbf6e68a9.tar.xz
linux-d43ec68e9837dfa6618ab473622683fdbf6e68a9.zip
ACPI: add device_driver and hepler functions
Add device_driver into acpi_driver for driver model. Add helper functions 'to_acpi_device' and 'to_acpi_driver' to get structure acpi_device/acpi_driver by device/device_driver. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r--drivers/acpi/scan.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 1f75ba6afae6..5b42948ea97f 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -222,11 +222,6 @@ acpi_eject_store(struct acpi_device *device, const char *buf, size_t count)
/* --------------------------------------------------------------------------
ACPI Bus operations
-------------------------------------------------------------------------- */
-static inline struct acpi_device * to_acpi_device(struct device * dev)
-{
- return container_of(dev, struct acpi_device, dev);
-}
-
static int root_suspend(struct acpi_device * acpi_dev, pm_message_t state)
{
struct acpi_device * dev, * next;