diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-02-06 13:25:39 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-02-11 23:30:50 +0530 |
commit | 8f01258385be3225331d7edd20de905df433aac4 (patch) | |
tree | 71151d65d59bbff25a0ff47375265446027ecaa1 | |
parent | dd1ed372abebe7d48dc26bf1649fb089422f0ba3 (diff) | |
download | linux-8f01258385be3225331d7edd20de905df433aac4.tar.bz2 |
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.c | 2 |
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); |