Skip to content

Commit 6e3ea06

Browse files
andy-shevvinodkoul
authored andcommitted
dmaengine: acpi: Drop unused devm_acpi_dma_controller_free()
After introduction a few years ago the devm_acpi_dma_controller_free() was never used. Drop it. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 32172b3 commit 6e3ea06

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

Documentation/driver-api/driver-model/devres.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,6 @@ SERDEV
459459

460460
SLAVE DMA ENGINE
461461
devm_acpi_dma_controller_register()
462-
devm_acpi_dma_controller_free()
463462

464463
SPI
465464
devm_spi_alloc_master()

drivers/dma/acpi-dma.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -276,21 +276,6 @@ int devm_acpi_dma_controller_register(struct device *dev,
276276
}
277277
EXPORT_SYMBOL_GPL(devm_acpi_dma_controller_register);
278278

279-
/**
280-
* devm_acpi_dma_controller_free - resource managed acpi_dma_controller_free()
281-
* @dev: device that is unregistering as DMA controller
282-
*
283-
* Unregister a DMA controller registered with
284-
* devm_acpi_dma_controller_register(). Normally this function will not need to
285-
* be called and the resource management code will ensure that the resource is
286-
* freed.
287-
*/
288-
void devm_acpi_dma_controller_free(struct device *dev)
289-
{
290-
WARN_ON(devres_release(dev, devm_acpi_dma_release, NULL, NULL));
291-
}
292-
EXPORT_SYMBOL_GPL(devm_acpi_dma_controller_free);
293-
294279
/**
295280
* acpi_dma_update_dma_spec - prepare dma specifier to pass to translation function
296281
* @adma: struct acpi_dma of DMA controller

include/linux/acpi_dma.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ int devm_acpi_dma_controller_register(struct device *dev,
6565
struct dma_chan *(*acpi_dma_xlate)
6666
(struct acpi_dma_spec *, struct acpi_dma *),
6767
void *data);
68-
void devm_acpi_dma_controller_free(struct device *dev);
6968

7069
struct dma_chan *acpi_dma_request_slave_chan_by_index(struct device *dev,
7170
size_t index);
@@ -94,9 +93,6 @@ static inline int devm_acpi_dma_controller_register(struct device *dev,
9493
{
9594
return -ENODEV;
9695
}
97-
static inline void devm_acpi_dma_controller_free(struct device *dev)
98-
{
99-
}
10096

10197
static inline struct dma_chan *acpi_dma_request_slave_chan_by_index(
10298
struct device *dev, size_t index)

0 commit comments

Comments
 (0)