summaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2010-06-16 18:52:17 (GMT)
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 14:07:50 (GMT)
commit478a8a0543021172220feeb0b39bb1b3e43c988f (patch)
treec80eb31436487294a43d23ad3869576a620fe1d3 /drivers/s390
parentbc4f24014de58f045f169742701a6598884d93db (diff)
downloadlinux-478a8a0543021172220feeb0b39bb1b3e43c988f.tar.xz
[SCSI] sd: add support for runtime PM
This patch (as1399) adds runtime-PM support to the sd driver. The support is unsophisticated: If a SCSI disk device is mounted, or if its device file is held open, then the device will not be runtime-suspended; otherwise it will (provided userspace gives permission by writing "auto" to the sysfs power/control attribute). In order to make this work, a dev_set_drvdata() call had to be moved from sd_probe_async() to sd_probe(). Also, a few lines of code were changed to use a local variable instead of recalculating the address of an embedded struct device. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions