dma: tegra: register as an OF DMA controller
authorStephen Warren <swarren@nvidia.com>
Mon, 11 Nov 2013 20:09:35 +0000 (13:09 -0700)
committerStephen Warren <swarren@nvidia.com>
Wed, 11 Dec 2013 23:43:27 +0000 (16:43 -0700)
commit996556c92a706058cf5ce6b3ef8dacc4032a3e0d
tree8a0df4fe6165488e9f1f218cea50cc5043d1a277
parent9aa433d2a77220fc261cb8248bb93bdd8e3944ef
dma: tegra: register as an OF DMA controller

Call of_dma_controller_register() so that DMA clients can look up the
Tegra DMA controller using standard APIs. This requires the of_xlate()
function to save off the DMA slave ID, and for tegra_dma_slave_config()
not to over-write this information; once DMA client drivers are converted
to dma_request_slave_channel() and DT-based lookups, they won't set this
field of struct dma_slave_config anymore.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Thierry Reding <treding@nvidia.com>
drivers/dma/tegra20-apb-dma.c