diff options
author | Lin Ming <ming.m.lin@intel.com> | 2011-12-05 02:20:26 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-01-09 01:14:57 +0100 |
commit | 54f57588463db1105f4a93b2902a6f95cb8f796a (patch) | |
tree | 5a8f50a836f49db68f994de214fdcaacda337151 /drivers/ata/pata_sl82c105.c | |
parent | [SCSI] check runtime PM status in system PM (diff) | |
download | linux-54f57588463db1105f4a93b2902a6f95cb8f796a.tar.xz linux-54f57588463db1105f4a93b2902a6f95cb8f796a.zip |
[SCSI] sd: check runtime PM status in sd_shutdown
sd_shutdown is called during reboot/poweroff.
It may fail if parent device, for example, ata port, was runtime suspended.
Fix it by checking runtime PM status of sd.
Exit immediately if sd was runtime suspended already.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_sl82c105.c')
0 files changed, 0 insertions, 0 deletions