summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-02-06 12:25:39 +0100
committerVinod Koul <vinod.koul@intel.com>2014-02-11 19:00:50 +0100
commit8f01258385be3225331d7edd20de905df433aac4 (patch)
tree71151d65d59bbff25a0ff47375265446027ecaa1
parentdmaengine: Remove dependency on MACH_BCM2708 (diff)
downloadlinux-8f01258385be3225331d7edd20de905df433aac4.tar.xz
linux-8f01258385be3225331d7edd20de905df433aac4.zip
acpi-dma: use devm_release() instead of devm_destroy()
Since devm_destroy() doesn't call release function we have to use devm_release() instead. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/acpi-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/acpi-dma.c b/drivers/dma/acpi-dma.c
index 1e506afa33f5..1fda371af4b7 100644
--- a/drivers/dma/acpi-dma.c
+++ b/drivers/dma/acpi-dma.c
@@ -265,7 +265,7 @@ EXPORT_SYMBOL_GPL(devm_acpi_dma_controller_register);
*/
void devm_acpi_dma_controller_free(struct device *dev)
{
- WARN_ON(devres_destroy(dev, devm_acpi_dma_release, NULL, NULL));
+ WARN_ON(devres_release(dev, devm_acpi_dma_release, NULL, NULL));
}
EXPORT_SYMBOL_GPL(devm_acpi_dma_controller_free);