commit | 4c90d9717ae27dddf4b02ed7d683e502b539cd1c | [log] [tgz] |
---|---|---|
author | Tejun Heo <htejun@gmail.com> | Tue Feb 20 18:14:48 2007 +0900 |
committer | Jeff Garzik <jeff@garzik.org> | Wed Feb 21 04:58:18 2007 -0500 |
tree | 5f089e1292536a84d7a8738ed276501c0600eaad | |
parent | 5e5c74a5e11d1e2a99d03132cc6c4455016db6c2 [diff] |
libata: disable pdev on all suspend events libata used disable pdev only on PM_EVENT_SUSPEND while re-enable pdev unconditionally. This was okay before ref-counted pdev enable update but it now makes the pdev pinned after swsusp cycle (enabled twice but disabled only once) and devres sanity check whines about it. Fix it by unconditionally disabling pdev on all suspend events. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>