mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
of: dma: Make of_dma_deconfigure() public
As part of moving DMA initializing to probe time the of_dma_deconfigure() function will need to be called from different source files. Make it public and move it to drivers/of/device.c where the of_dma_configure() function is. Tested-by: Marek Szyprowski <[email protected]> Reviewed-by: Robin Murphy <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
d7b0558230
commit
3f1866779c
3 changed files with 15 additions and 5 deletions
|
|
@ -151,6 +151,18 @@ void of_dma_configure(struct device *dev, struct device_node *np)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(of_dma_configure);
|
||||
|
||||
/**
|
||||
* of_dma_deconfigure - Clean up DMA configuration
|
||||
* @dev: Device for which to clean up DMA configuration
|
||||
*
|
||||
* Clean up all configuration performed by of_dma_configure_ops() and free all
|
||||
* resources that have been allocated.
|
||||
*/
|
||||
void of_dma_deconfigure(struct device *dev)
|
||||
{
|
||||
arch_teardown_dma_ops(dev);
|
||||
}
|
||||
|
||||
int of_device_register(struct platform_device *pdev)
|
||||
{
|
||||
device_initialize(&pdev->dev);
|
||||
|
|
|
|||
|
|
@ -158,11 +158,6 @@ struct platform_device *of_device_alloc(struct device_node *np,
|
|||
}
|
||||
EXPORT_SYMBOL(of_device_alloc);
|
||||
|
||||
static void of_dma_deconfigure(struct device *dev)
|
||||
{
|
||||
arch_teardown_dma_ops(dev);
|
||||
}
|
||||
|
||||
/**
|
||||
* of_platform_device_create_pdata - Alloc, initialize and register an of_device
|
||||
* @np: pointer to node to create device for
|
||||
|
|
|
|||
Loading…
Reference in a new issue