diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-28 07:01:40 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-06-28 07:01:40 -0400 |
commit | e52cff8bdd4a30c40a7f65c7ea8f1f425f8a15eb (patch) | |
tree | 1729332ebab51bb560ca64effe46cdab38ab537f /drivers/scsi | |
parent | 405a1086bdd091d2d55db0ac905cd6332b35cec1 (diff) | |
parent | f5ce1572109049b90484e2bb44927cb6034c5eb1 (diff) |
Merge branch 'pm-assorted'
* pm-assorted:
PM / QoS: Add pm_qos and dev_pm_qos to events-power.txt
PM / QoS: Add dev_pm_qos_request tracepoints
PM / QoS: Add pm_qos_request tracepoints
PM / QoS: Add pm_qos_update_target/flags tracepoints
PM / QoS: Update Documentation/power/pm_qos_interface.txt
PM / Sleep: Print last wakeup source on failed wakeup_count write
PM / QoS: correct the valid range of pm_qos_class
PM / wakeup: Adjust messaging for wake events during suspend
PM / Runtime: Update .runtime_idle() callback documentation
PM / Runtime: Rework the "runtime idle" helper routine
PM / Hibernate: print physical addresses consistently with other parts of kernel
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi_pm.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c index 42539ee2cb11..4c5aabe21755 100644 --- a/drivers/scsi/scsi_pm.c +++ b/drivers/scsi/scsi_pm.c | |||
@@ -229,8 +229,6 @@ static int scsi_runtime_resume(struct device *dev) | |||
229 | 229 | ||
230 | static int scsi_runtime_idle(struct device *dev) | 230 | static int scsi_runtime_idle(struct device *dev) |
231 | { | 231 | { |
232 | int err; | ||
233 | |||
234 | dev_dbg(dev, "scsi_runtime_idle\n"); | 232 | dev_dbg(dev, "scsi_runtime_idle\n"); |
235 | 233 | ||
236 | /* Insert hooks here for targets, hosts, and transport classes */ | 234 | /* Insert hooks here for targets, hosts, and transport classes */ |
@@ -240,14 +238,11 @@ static int scsi_runtime_idle(struct device *dev) | |||
240 | 238 | ||
241 | if (sdev->request_queue->dev) { | 239 | if (sdev->request_queue->dev) { |
242 | pm_runtime_mark_last_busy(dev); | 240 | pm_runtime_mark_last_busy(dev); |
243 | err = pm_runtime_autosuspend(dev); | 241 | pm_runtime_autosuspend(dev); |
244 | } else { | 242 | return -EBUSY; |
245 | err = pm_runtime_suspend(dev); | ||
246 | } | 243 | } |
247 | } else { | ||
248 | err = pm_runtime_suspend(dev); | ||
249 | } | 244 | } |
250 | return err; | 245 | return 0; |
251 | } | 246 | } |
252 | 247 | ||
253 | int scsi_autopm_get_device(struct scsi_device *sdev) | 248 | int scsi_autopm_get_device(struct scsi_device *sdev) |