diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-11-27 14:25:59 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-11-27 14:26:19 +0100 |
commit | 8d59f60b14a296e0d41aeae8ec592c3476b3c451 (patch) | |
tree | 0ee8591c7974dc20da4fffba712e8a6be7d0a392 | |
parent | 3d940dea951a9c85ce00b894f277863ee3e7d3d5 (diff) | |
download | hda-emu-8d59f60b14a296e0d41aeae8ec592c3476b3c451.tar.gz |
Add a hacked version of pm_runtime_set_suspended()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/linux/pm_runtime.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h index c3ec139..5b8c36d 100644 --- a/include/linux/pm_runtime.h +++ b/include/linux/pm_runtime.h @@ -16,6 +16,8 @@ static inline bool pm_runtime_suspended(struct device *dev) { return dev->pmsusp static inline void pm_runtime_get_noresume(struct device *dev) { dev->pmcnt++; } static inline void pm_runtime_put_noidle(struct device *dev) { dev->pmcnt--; } +static inline int pm_runtime_set_suspended(struct device *dev) { return 0; } // XXX + int pm_runtime_get_sync(struct device *dev); int pm_runtime_get_if_in_use(struct device *dev); int pm_runtime_put_autosuspend(struct device *dev); |