aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_priv.h
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-06-17 10:36:49 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:07:49 -0400
commitdb5bd1e0b505c54ff492172ce4abc245cf6cd639 (patch)
treeb0b4c42c45b52ce9f1f4727a144475071a3f0ac3 /drivers/scsi/scsi_priv.h
parentdf64d3caab8db6ae17dacd229a03d7689a10c432 (diff)
[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>
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r--drivers/scsi/scsi_priv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index 1fbf7c78bba0..dddacc732550 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -144,6 +144,13 @@ static inline void scsi_netlink_init(void) {}
144static inline void scsi_netlink_exit(void) {} 144static inline void scsi_netlink_exit(void) {}
145#endif 145#endif
146 146
147/* scsi_pm.c */
148#ifdef CONFIG_PM_OPS
149extern const struct dev_pm_ops scsi_bus_pm_ops;
150#else
151#define scsi_bus_pm_ops (*NULL)
152#endif
153
147/* 154/*
148 * internal scsi timeout functions: for use by mid-layer and transport 155 * internal scsi timeout functions: for use by mid-layer and transport
149 * classes. 156 * classes.