summaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-18 13:48:30 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-01-18 13:48:30 +0100
commit0b3571274b8ff53c0e08bc667ecd3d8a43bd8714 (patch)
tree57fa58c4c5abe63cccf3fd842548d16fc8d792ba /include/linux/acpi.h
parent7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619 (diff)
parent5993c4670ea2453ef5abb45b312f150e994e6eb9 (diff)
Merge branch 'acpi-scan' into acpi-lpss
The following commits depend on the 'acpi-scan' material.
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 3994d7790b2..8c1d6f2a219 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -526,9 +526,14 @@ static inline int acpi_subsys_resume_early(struct device *dev) { return 0; }
#endif
#if defined(CONFIG_ACPI) && defined(CONFIG_PM)
+struct acpi_device *acpi_dev_pm_get_node(struct device *dev);
int acpi_dev_pm_attach(struct device *dev, bool power_on);
void acpi_dev_pm_detach(struct device *dev, bool power_off);
#else
+static inline struct acpi_device *acpi_dev_pm_get_node(struct device *dev)
+{
+ return NULL;
+}
static inline int acpi_dev_pm_attach(struct device *dev, bool power_on)
{
return -ENODEV;