diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2016-04-08 13:40:53 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-04-22 01:32:37 +0200 |
commit | 372a12ed9d99c02f105278a9b75f0cb176d15cc1 (patch) | |
tree | 196d377f99169848670dccc2ce50462a6ea4587c /include/linux/device.h | |
parent | 0ae3aeefabbeef26294e7a349b51f1c761d46c9f (diff) | |
download | linux-372a12ed9d99c02f105278a9b75f0cb176d15cc1.tar.gz linux-372a12ed9d99c02f105278a9b75f0cb176d15cc1.tar.bz2 linux-372a12ed9d99c02f105278a9b75f0cb176d15cc1.zip |
PM / Runtime: Move ignore_children flag under CONFIG_PM
The ignore_children flag is used only when CONFIG_PM is set, so let's move
it into that section within the struct dev_pm_info.
Move also the corresponding pm_suspend_ignore_children() API out of
device.h into pm_runtime.h, to be consistent with similar APIs.
Unfortunate this causes the Toshiba PCI SD mmc host driver to fail to
compile as it needs pm_runtime.h, so let's fix this here as well.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 002c59728dbe..b130304f9b1b 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -956,11 +956,6 @@ static inline bool device_async_suspend_enabled(struct device *dev) return !!dev->power.async_suspend; } -static inline void pm_suspend_ignore_children(struct device *dev, bool enable) -{ - dev->power.ignore_children = enable; -} - static inline void dev_pm_syscore_device(struct device *dev, bool val) { #ifdef CONFIG_PM_SLEEP |