diff options
author | Pavel Machek <pavel@ucw.cz> | 2008-02-21 07:56:55 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-24 00:27:26 -0500 |
commit | 559bbe6cbd0d8c68d40076a5f7dc98e3bf5864b2 (patch) | |
tree | e9e24b682275594a269a9fd7e1a754c54b66f4c2 | |
parent | 635adc28087ced0c843d2ecb6d4ae474d0e611cd (diff) |
power_state: get rid of write-only variable in SATA
power_state is scheduled for removal, and libata uses it in write-only
mode. Remove it.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/ata/libata-core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 4cf8662df99e..9812bbf05e62 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -6560,8 +6560,6 @@ int ata_host_suspend(struct ata_host *host, pm_message_t mesg) | |||
6560 | ata_lpm_enable(host); | 6560 | ata_lpm_enable(host); |
6561 | 6561 | ||
6562 | rc = ata_host_request_pm(host, mesg, 0, ATA_EHI_QUIET, 1); | 6562 | rc = ata_host_request_pm(host, mesg, 0, ATA_EHI_QUIET, 1); |
6563 | if (rc == 0) | ||
6564 | host->dev->power.power_state = mesg; | ||
6565 | return rc; | 6563 | return rc; |
6566 | } | 6564 | } |
6567 | 6565 | ||
@@ -6580,7 +6578,6 @@ void ata_host_resume(struct ata_host *host) | |||
6580 | { | 6578 | { |
6581 | ata_host_request_pm(host, PMSG_ON, ATA_EH_SOFTRESET, | 6579 | ata_host_request_pm(host, PMSG_ON, ATA_EH_SOFTRESET, |
6582 | ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET, 0); | 6580 | ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET, 0); |
6583 | host->dev->power.power_state = PMSG_ON; | ||
6584 | 6581 | ||
6585 | /* reenable link pm */ | 6582 | /* reenable link pm */ |
6586 | ata_lpm_disable(host); | 6583 | ata_lpm_disable(host); |