Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 559bbe6c authored by Pavel Machek's avatar Pavel Machek Committed by Jeff Garzik
Browse files

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: default avatarPavel Machek <pavel@suse.cz>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 635adc28
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -6560,8 +6560,6 @@ int ata_host_suspend(struct ata_host *host, pm_message_t mesg)
	ata_lpm_enable(host);

	rc = ata_host_request_pm(host, mesg, 0, ATA_EHI_QUIET, 1);
	if (rc == 0)
		host->dev->power.power_state = mesg;
	return rc;
}

@@ -6580,7 +6578,6 @@ void ata_host_resume(struct ata_host *host)
{
	ata_host_request_pm(host, PMSG_ON, ATA_EH_SOFTRESET,
			    ATA_EHI_NO_AUTOPSY | ATA_EHI_QUIET, 0);
	host->dev->power.power_state = PMSG_ON;

	/* reenable link pm */
	ata_lpm_disable(host);