]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: acpi: Simplify devm_acpi_dma_controller_register()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 Oct 2024 15:03:24 +0000 (18:03 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 14 Oct 2024 17:57:57 +0000 (23:27 +0530)
commitc0fecce865535f77e7a8220175b126392dfe99dc
treeb2e87ffe79ab7dc3c00950256a5c904b216afd66
parent6e3ea06240adfef7b46e2338dd824541c31de06d
dmaengine: acpi: Simplify devm_acpi_dma_controller_register()

Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20241007150436.2183575-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/acpi-dma.c