X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fbase%2Fpower%2Fpower.h;h=fb3d35a9e101582563b357848617cd7539e65e3a;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=6971cc667b172b40631c933be1d6d35dceb4f76b;hpb=9bf4aaab3e101692164d49b7ca357651eb691cb6;p=linux-2.6.git diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index 6971cc667..fb3d35a9e 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -1,18 +1,7 @@ - - -enum { - DEVICE_PM_ON, - DEVICE_PM1, - DEVICE_PM2, - DEVICE_PM3, - DEVICE_PM_OFF, -}; - /* * shutdown.c */ -extern int device_detach_shutdown(struct device *); extern void device_shutdown(void); @@ -27,6 +16,11 @@ extern void device_shutdown(void); */ extern struct semaphore dpm_sem; +/* + * Used to serialize changes to the dpm_* lists. + */ +extern struct semaphore dpm_list_sem; + /* * The PM lists. */ @@ -66,16 +60,13 @@ extern int resume_device(struct device *); /* * suspend.c */ -extern int suspend_device(struct device *, u32); +extern int suspend_device(struct device *, pm_message_t); /* * runtime.c */ -extern int dpm_runtime_suspend(struct device *, u32); -extern void dpm_runtime_resume(struct device *); - #else /* CONFIG_PM */ @@ -88,14 +79,4 @@ static inline void device_pm_remove(struct device * dev) } -static inline int dpm_runtime_suspend(struct device * dev, u32 state) -{ - return 0; -} - -static inline void dpm_runtime_resume(struct device * dev) -{ - -} - #endif