From: Aaron Lu Date: Fri, 9 Nov 2012 07:27:55 +0000 (+0800) Subject: [SCSI] sd: update sd to use the new pm callbacks X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~22^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=691e3d3175daff73d9b1771bf79ab032fdcec5a5;p=pandora-kernel.git [SCSI] sd: update sd to use the new pm callbacks Update sd driver to use the callbacks defined in dev_pm_ops. sd_freeze is NULL, the bus level callback has taken care of quiescing the device so there should be nothing needs to be done here. Consequently, sd_thaw is not needed here either. suspend, poweroff and runtime suspend share the same routine sd_suspend, which will sync flush and then stop the drive, this is the same as before. resume, restore and runtime resume share the same routine sd_resume, which will start the drive by putting it into active power state, this is also the same as before. Signed-off-by: Aaron Lu Acked-by: Alan Stern Acked-by: Rafael J. Wysocki Signed-off-by: James Bottomley --- Reading git-diff-tree failed