mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> # PCI parts Reviewed-by: Rob Herring <[email protected]> [hch: tweaked the changelog a bit] Signed-off-by: Christoph Hellwig <[email protected]>
This commit is contained in:
parent
07397df29e
commit
3d6ce86ee7
10 changed files with 17 additions and 19 deletions
|
|
@ -398,7 +398,7 @@ static int __init hidma_mgmt_of_populate_channels(struct device_node *np)
|
|||
}
|
||||
of_node_get(child);
|
||||
new_pdev->dev.of_node = child;
|
||||
of_dma_configure(&new_pdev->dev, child);
|
||||
of_dma_configure(&new_pdev->dev, child, true);
|
||||
/*
|
||||
* It is assumed that calling of_msi_configure is safe on
|
||||
* platforms with or without MSI support.
|
||||
|
|
|
|||
Loading…
Reference in a new issue