[SCSI] convert to the new PM framework

This patch (as1397b) converts the SCSI midlayer to use the new PM
callbacks (struct dev_pm_ops).  A new source file, scsi_pm.c, is
created to hold the new callback routines, and the existing
suspend/resume code is moved there.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
这个提交包含在:
Alan Stern
2010-06-17 10:36:49 -04:00
提交者 James Bottomley
父节点 df64d3caab
当前提交 db5bd1e0b5
修改 4 个文件,包含 105 行新增47 行删除

查看文件

@@ -144,6 +144,13 @@ static inline void scsi_netlink_init(void) {}
static inline void scsi_netlink_exit(void) {}
#endif
/* scsi_pm.c */
#ifdef CONFIG_PM_OPS
extern const struct dev_pm_ops scsi_bus_pm_ops;
#else
#define scsi_bus_pm_ops (*NULL)
#endif
/*
* internal scsi timeout functions: for use by mid-layer and transport
* classes.