summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-01-05 01:45:40 +0300
committerVinod Koul <vinod.koul@intel.com>2018-01-08 20:01:02 +0300
commit37fa4905d22a903f9fe120016fe7d6a2ece8d736 (patch)
tree0fc2ebe926795746d0a9ee8299dcfdcbbd4a0f89 /block
parent38680bc6b1e3592bc9e18adc1d6e259667df27ce (diff)
downloadlinux-37fa4905d22a903f9fe120016fe7d6a2ece8d736.tar.xz
dmaengine: qcom_hidma: simplify DT resource parsing
The hidma driver open codes populating address and IRQ resources from DT. We have standard functions of_address_to_resource and of_irq_to_resource for this, so use them instead. The DT binding states each child should have 2 addresses and 1 IRQ, so we can simplify the logic and do a fixed size resource allocation. Using the standard of_address_to_resource will also do any address translation which was missing. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Sinan Kaya <okaya@codeaurora.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions