]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
dmaengine: dw: platform: Switch to acpi_dma_controller_register()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 20 Aug 2019 13:15:43 +0000 (16:15 +0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit64584b95b0f63696aef00ed062174f7a290cc150
tree98a83469e13d3886217f1f22391c95c7dbd93b6e
parentf19588f5d4ca31a44abcd5de3bfbc12442a0fadf
dmaengine: dw: platform: Switch to acpi_dma_controller_register()

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit e7b8514e4d68bec21fc6385fa0a66797ddc34ac9 ]

There is a possibility to have registered ACPI DMA controller
while it has been gone already.

To avoid the potential crash, move to non-managed
acpi_dma_controller_register().

Fixes: 42c91ee71d6d ("dw_dmac: add ACPI support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190820131546.75744-8-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/dma/dw/platform.c