aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2014-09-19 14:27:44 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-09-22 09:57:41 -0400
commit91d66cd27f5fd8a3bca4621a3505c9067925478d (patch)
tree123b5c736adc4fa6fadce23be116fd7fcf09c45d /include/linux/acpi.h
parenta4a8c2c4962bb655e7152c53a0eb6ca31c47f159 (diff)
ACPI / PM: Convert acpi_dev_pm_detach() into a static function
The ->detach() callback for the PM domain has now been fully adopted, thus there no users left of the acpi_dev_pm_detach() API. This allow us to convert it into a static function. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 807cbc46d73e..b7926bb9b444 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -587,7 +587,6 @@ static inline int acpi_subsys_freeze(struct device *dev) { return 0; }
587#if defined(CONFIG_ACPI) && defined(CONFIG_PM) 587#if defined(CONFIG_ACPI) && defined(CONFIG_PM)
588struct acpi_device *acpi_dev_pm_get_node(struct device *dev); 588struct acpi_device *acpi_dev_pm_get_node(struct device *dev);
589int acpi_dev_pm_attach(struct device *dev, bool power_on); 589int acpi_dev_pm_attach(struct device *dev, bool power_on);
590void acpi_dev_pm_detach(struct device *dev, bool power_off);
591#else 590#else
592static inline struct acpi_device *acpi_dev_pm_get_node(struct device *dev) 591static inline struct acpi_device *acpi_dev_pm_get_node(struct device *dev)
593{ 592{
@@ -597,7 +596,6 @@ static inline int acpi_dev_pm_attach(struct device *dev, bool power_on)
597{ 596{
598 return -ENODEV; 597 return -ENODEV;
599} 598}
600static inline void acpi_dev_pm_detach(struct device *dev, bool power_off) {}
601#endif 599#endif
602 600
603#ifdef CONFIG_ACPI 601#ifdef CONFIG_ACPI