diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-14 17:13:55 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-12-15 09:11:06 -0500 |
commit | 4f7ad5211eb4d331a54f3cc6832883e5e7e95eea (patch) | |
tree | 5aa95aabc7fcaa014f148e489d8840be0a61e7f3 /drivers/scsi/scsi_priv.h | |
parent | 798bc6d8d50ff26a5033be0cb9c63727943b49fe (diff) |
SCSI / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM
After commit b2b49ccbdd54 (PM: Kconfig: Set PM_RUNTIME if PM_SLEEP is
selected) PM_RUNTIME is always set if PM is set, so #ifdef blocks
depending on CONFIG_PM_RUNTIME may now be changed to depend on
CONFIG_PM.
Replace CONFIG_PM_RUNTIME with CONFIG_PM everywhere under
drivers/scsi/ and in include/scsi/scsi_device.h.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r-- | drivers/scsi/scsi_priv.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h index 2dc4a83fb84c..e3902fc66278 100644 --- a/drivers/scsi/scsi_priv.h +++ b/drivers/scsi/scsi_priv.h | |||
@@ -155,8 +155,7 @@ static inline void scsi_netlink_exit(void) {} | |||
155 | /* scsi_pm.c */ | 155 | /* scsi_pm.c */ |
156 | #ifdef CONFIG_PM | 156 | #ifdef CONFIG_PM |
157 | extern const struct dev_pm_ops scsi_bus_pm_ops; | 157 | extern const struct dev_pm_ops scsi_bus_pm_ops; |
158 | #endif | 158 | |
159 | #ifdef CONFIG_PM_RUNTIME | ||
160 | extern void scsi_autopm_get_target(struct scsi_target *); | 159 | extern void scsi_autopm_get_target(struct scsi_target *); |
161 | extern void scsi_autopm_put_target(struct scsi_target *); | 160 | extern void scsi_autopm_put_target(struct scsi_target *); |
162 | extern int scsi_autopm_get_host(struct Scsi_Host *); | 161 | extern int scsi_autopm_get_host(struct Scsi_Host *); |
@@ -166,7 +165,7 @@ static inline void scsi_autopm_get_target(struct scsi_target *t) {} | |||
166 | static inline void scsi_autopm_put_target(struct scsi_target *t) {} | 165 | static inline void scsi_autopm_put_target(struct scsi_target *t) {} |
167 | static inline int scsi_autopm_get_host(struct Scsi_Host *h) { return 0; } | 166 | static inline int scsi_autopm_get_host(struct Scsi_Host *h) { return 0; } |
168 | static inline void scsi_autopm_put_host(struct Scsi_Host *h) {} | 167 | static inline void scsi_autopm_put_host(struct Scsi_Host *h) {} |
169 | #endif /* CONFIG_PM_RUNTIME */ | 168 | #endif /* CONFIG_PM */ |
170 | 169 | ||
171 | extern struct async_domain scsi_sd_pm_domain; | 170 | extern struct async_domain scsi_sd_pm_domain; |
172 | extern struct async_domain scsi_sd_probe_domain; | 171 | extern struct async_domain scsi_sd_probe_domain; |