]> asedeno.scripts.mit.edu Git - linux.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)
committerVinod Koul <vkoul@kernel.org>
Wed, 21 Aug 2019 04:11:28 +0000 (09:41 +0530)
commite7b8514e4d68bec21fc6385fa0a66797ddc34ac9
treebcfc2b79ae469a7a46aaa3ff62be8bdb9a4a2181
parenta9c56721d6ae99b22e983d0722e6b1b53a11dd59
dmaengine: dw: platform: Switch to acpi_dma_controller_register()

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>
drivers/dma/dw/platform.c