[PATCH] DRIVER MODEL: Get rid of the obsolete tri-level suspend/resume callbacks
In PM v1, all devices were called at SUSPEND_DISABLE level. Then all devices were called at SUSPEND_SAVE_STATE level, and finally SUSPEND_POWER_DOWN level. However, with PM v2, to maintain compatibility for platform devices, I arranged for the PM v2 suspend/resume callbacks to call the old PM v1 suspend/resume callbacks three times with each level in order so that existing drivers continued to work. Since this is obsolete infrastructure which is no longer necessary, we can remove it. Here's an (untested) patch to do exactly that. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a3a3395e48
commit
9480e307cd
@@ -28,19 +28,6 @@
|
||||
#define BUS_ID_SIZE KOBJ_NAME_LEN
|
||||
|
||||
|
||||
enum {
|
||||
SUSPEND_NOTIFY,
|
||||
SUSPEND_SAVE_STATE,
|
||||
SUSPEND_DISABLE,
|
||||
SUSPEND_POWER_DOWN,
|
||||
};
|
||||
|
||||
enum {
|
||||
RESUME_POWER_ON,
|
||||
RESUME_RESTORE_STATE,
|
||||
RESUME_ENABLE,
|
||||
};
|
||||
|
||||
struct device;
|
||||
struct device_driver;
|
||||
struct class;
|
||||
@@ -115,8 +102,8 @@ struct device_driver {
|
||||
int (*probe) (struct device * dev);
|
||||
int (*remove) (struct device * dev);
|
||||
void (*shutdown) (struct device * dev);
|
||||
int (*suspend) (struct device * dev, pm_message_t state, u32 level);
|
||||
int (*resume) (struct device * dev, u32 level);
|
||||
int (*suspend) (struct device * dev, pm_message_t state);
|
||||
int (*resume) (struct device * dev);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user