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

Commit 9e8b855e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Tejun Heo
Browse files

ata: sata_dwc_460ex: switch to new dmaengine_terminate_* API



Convert dmaengine_terminate_all() calls to synchronous and asynchronous
versions where appropriate.

Tested-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent adc64ecf
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -968,7 +968,7 @@ static void sata_dwc_port_stop(struct ata_port *ap)


	dev_dbg(ap->dev, "%s: ap->id = %d\n", __func__, ap->print_id);
	dev_dbg(ap->dev, "%s: ap->id = %d\n", __func__, ap->print_id);


	dmaengine_terminate_all(hsdevp->chan);
	dmaengine_terminate_sync(hsdevp->chan);
	dma_release_channel(hsdevp->chan);
	dma_release_channel(hsdevp->chan);
	phy_power_off(hsdev->phy);
	phy_power_off(hsdev->phy);