acpi-dma: use devm_release() instead of devm_destroy()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 6 Feb 2014 11:25:39 +0000 (13:25 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 11 Feb 2014 18:00:50 +0000 (23:30 +0530)
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>
drivers/dma/acpi-dma.c

index 1e506afa33f5e5a9b95753ce0e98ceb2f4ce7e66..1fda371af4b76c49611ff36d62789c009e73246b 100644 (file)
@@ -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);