diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2011-08-25 09:33:50 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2011-08-25 09:33:50 -0400 |
commit | 5c095a0e0d600d5a5a4207eaadabd18db46395ce (patch) | |
tree | 18163d773234898e71c22d83b265a1eccfba11d9 /include/linux/pm_runtime.h | |
parent | 111058c3ff29a6a25216b31789046c2a330baa7d (diff) |
PM: Introduce struct pm_subsys_data
Introduce struct pm_subsys_data that may be subclassed by subsystems
to store subsystem-specific information related to the device. Move
the clock management fields accessed through the power.subsys_data
pointer in struct device to the new strucutre.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/linux/pm_runtime.h')
-rw-r--r-- | include/linux/pm_runtime.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h index daac05d751b2..6b90630e3c98 100644 --- a/include/linux/pm_runtime.h +++ b/include/linux/pm_runtime.h | |||
@@ -258,14 +258,18 @@ struct pm_clk_notifier_block { | |||
258 | }; | 258 | }; |
259 | 259 | ||
260 | #ifdef CONFIG_PM_CLK | 260 | #ifdef CONFIG_PM_CLK |
261 | extern int pm_clk_init(struct device *dev); | 261 | extern void pm_clk_init(struct device *dev); |
262 | extern int pm_clk_create(struct device *dev); | ||
262 | extern void pm_clk_destroy(struct device *dev); | 263 | extern void pm_clk_destroy(struct device *dev); |
263 | extern int pm_clk_add(struct device *dev, const char *con_id); | 264 | 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 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_suspend(struct device *dev); |
266 | extern int pm_clk_resume(struct device *dev); | 267 | extern int pm_clk_resume(struct device *dev); |
267 | #else | 268 | #else |
268 | static inline int pm_clk_init(struct device *dev) | 269 | static inline void pm_clk_init(struct device *dev) |
270 | { | ||
271 | } | ||
272 | static inline int pm_clk_create(struct device *dev) | ||
269 | { | 273 | { |
270 | return -EINVAL; | 274 | return -EINVAL; |
271 | } | 275 | } |