mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
drivers: remove force dma flag from buses
With each bus implementing its own DMA configuration callback, there is no need for bus to explicitly set the force_dma flag. Modify the of_dma_configure function to accept an input parameter which specifies if implicit DMA configuration is required when it is not described by the firmware. Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> # PCI parts Reviewed-by: Rob Herring <robh@kernel.org> [hch: tweaked the changelog a bit] Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
07397df29e
commit
3d6ce86ee7
10 changed files with 17 additions and 19 deletions
|
@ -55,7 +55,9 @@ static inline struct device_node *of_cpu_device_node_get(int cpu)
|
|||
return of_node_get(cpu_dev->of_node);
|
||||
}
|
||||
|
||||
int of_dma_configure(struct device *dev, struct device_node *np);
|
||||
int of_dma_configure(struct device *dev,
|
||||
struct device_node *np,
|
||||
bool force_dma);
|
||||
void of_dma_deconfigure(struct device *dev);
|
||||
#else /* CONFIG_OF */
|
||||
|
||||
|
@ -105,7 +107,9 @@ static inline struct device_node *of_cpu_device_node_get(int cpu)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
static inline int of_dma_configure(struct device *dev, struct device_node *np)
|
||||
static inline int of_dma_configure(struct device *dev,
|
||||
struct device_node *np,
|
||||
bool force_dma)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue