Skip to content

Commit

Permalink
dmaengine: acpi: Drop unused devm_acpi_dma_controller_free()
Browse files Browse the repository at this point in the history
After introduction a few years ago the devm_acpi_dma_controller_free()
was never used. Drop it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20241007150436.2183575-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
  • Loading branch information
Andy Shevchenko authored and Vinod Koul committed Oct 14, 2024
1 parent 32172b3 commit 6e3ea06
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion Documentation/driver-api/driver-model/devres.rst
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ SERDEV

SLAVE DMA ENGINE
devm_acpi_dma_controller_register()
devm_acpi_dma_controller_free()

SPI
devm_spi_alloc_master()
Expand Down
15 changes: 0 additions & 15 deletions drivers/dma/acpi-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,21 +276,6 @@ int devm_acpi_dma_controller_register(struct device *dev,
}
EXPORT_SYMBOL_GPL(devm_acpi_dma_controller_register);

/**
* devm_acpi_dma_controller_free - resource managed acpi_dma_controller_free()
* @dev: device that is unregistering as DMA controller
*
* Unregister a DMA controller registered with
* devm_acpi_dma_controller_register(). Normally this function will not need to
* be called and the resource management code will ensure that the resource is
* freed.
*/
void devm_acpi_dma_controller_free(struct device *dev)
{
WARN_ON(devres_release(dev, devm_acpi_dma_release, NULL, NULL));
}
EXPORT_SYMBOL_GPL(devm_acpi_dma_controller_free);

/**
* acpi_dma_update_dma_spec - prepare dma specifier to pass to translation function
* @adma: struct acpi_dma of DMA controller
Expand Down
4 changes: 0 additions & 4 deletions include/linux/acpi_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ int devm_acpi_dma_controller_register(struct device *dev,
struct dma_chan *(*acpi_dma_xlate)
(struct acpi_dma_spec *, struct acpi_dma *),
void *data);
void devm_acpi_dma_controller_free(struct device *dev);

struct dma_chan *acpi_dma_request_slave_chan_by_index(struct device *dev,
size_t index);
Expand Down Expand Up @@ -94,9 +93,6 @@ static inline int devm_acpi_dma_controller_register(struct device *dev,
{
return -ENODEV;
}
static inline void devm_acpi_dma_controller_free(struct device *dev)
{
}

static inline struct dma_chan *acpi_dma_request_slave_chan_by_index(
struct device *dev, size_t index)
Expand Down

0 comments on commit 6e3ea06

Please sign in to comment.