diff options
Diffstat (limited to 'include/linux/pm_runtime.h')
| -rw-r--r-- | include/linux/pm_runtime.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h index daac05d751b2..70b284024d9e 100644 --- a/include/linux/pm_runtime.h +++ b/include/linux/pm_runtime.h | |||
| @@ -251,46 +251,4 @@ static inline void pm_runtime_dont_use_autosuspend(struct device *dev) | |||
| 251 | __pm_runtime_use_autosuspend(dev, false); | 251 | __pm_runtime_use_autosuspend(dev, false); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | struct pm_clk_notifier_block { | ||
| 255 | struct notifier_block nb; | ||
| 256 | struct dev_pm_domain *pm_domain; | ||
| 257 | char *con_ids[]; | ||
| 258 | }; | ||
| 259 | |||
| 260 | #ifdef CONFIG_PM_CLK | ||
| 261 | extern int pm_clk_init(struct device *dev); | ||
| 262 | extern void pm_clk_destroy(struct device *dev); | ||
| 263 | extern int pm_clk_add(struct device *dev, const char *con_id); | ||
| 264 | extern void pm_clk_remove(struct device *dev, const char *con_id); | ||
| 265 | extern int pm_clk_suspend(struct device *dev); | ||
| 266 | extern int pm_clk_resume(struct device *dev); | ||
| 267 | #else | ||
| 268 | static inline int pm_clk_init(struct device *dev) | ||
| 269 | { | ||
| 270 | return -EINVAL; | ||
| 271 | } | ||
| 272 | static inline void pm_clk_destroy(struct device *dev) | ||
| 273 | { | ||
| 274 | } | ||
| 275 | static inline int pm_clk_add(struct device *dev, const char *con_id) | ||
| 276 | { | ||
| 277 | return -EINVAL; | ||
| 278 | } | ||
| 279 | static inline void pm_clk_remove(struct device *dev, const char *con_id) | ||
| 280 | { | ||
| 281 | } | ||
| 282 | #define pm_clk_suspend NULL | ||
| 283 | #define pm_clk_resume NULL | ||
| 284 | #endif | ||
| 285 | |||
| 286 | #ifdef CONFIG_HAVE_CLK | ||
| 287 | extern void pm_clk_add_notifier(struct bus_type *bus, | ||
| 288 | struct pm_clk_notifier_block *clknb); | ||
| 289 | #else | ||
| 290 | static inline void pm_clk_add_notifier(struct bus_type *bus, | ||
| 291 | struct pm_clk_notifier_block *clknb) | ||
| 292 | { | ||
| 293 | } | ||
| 294 | #endif | ||
| 295 | |||
| 296 | #endif | 254 | #endif |
