aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pm.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2007-06-13 09:53:34 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-11 19:09:01 -0400
commit9cddad77574313fcee36c5e60122718daa7c0361 (patch)
tree2d6dd05e02ffff565ffb23046933f33cda0531e8 /include/linux/pm.h
parent11048dcf333c414f237bb713c422e68f67b115a3 (diff)
PM: Remove pm_parent from struct dev_pm_info
The pm_parent member of struct dev_pm_info (defined in include/linux/pm.h) is only used to check if the device's parent is in the right state while the device is being suspended or resumed. However, this can be done just as well with the help of the parent pointer in struct device, so pm_parent can be removed along with some code that handles it. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/pm.h')
-rw-r--r--include/linux/pm.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/pm.h b/include/linux/pm.h
index b2c4fde4e994..3fd65ad4b097 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -269,13 +269,10 @@ struct dev_pm_info {
269 unsigned should_wakeup:1; 269 unsigned should_wakeup:1;
270 pm_message_t prev_state; 270 pm_message_t prev_state;
271 void * saved_state; 271 void * saved_state;
272 struct device * pm_parent;
273 struct list_head entry; 272 struct list_head entry;
274#endif 273#endif
275}; 274};
276 275
277extern void device_pm_set_parent(struct device * dev, struct device * parent);
278
279extern int device_power_down(pm_message_t state); 276extern int device_power_down(pm_message_t state);
280extern void device_power_up(void); 277extern void device_power_up(void);
281extern void device_resume(void); 278extern void device_resume(void);