dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate
authorMiaoqian Lin <linmq006@gmail.com>
Sun, 5 Jun 2022 04:27:22 +0000 (08:27 +0400)
committerVinod Koul <vkoul@kernel.org>
Thu, 9 Jun 2022 06:00:31 +0000 (11:30 +0530)
commit615a4bfc426e11dba05c2cf343f9ac752fb381d2
tree48a267870610f82494ab0b9bfad9eeea07fa8120
parentc132fe78ad7b4ce8b5d49a501a15c29d08eeb23a
dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate

of_find_device_by_node() takes reference, we should use put_device()
to release it when not need anymore.

Fixes: a074ae38f859 ("dmaengine: Add driver for TI DMA crossbar on DRA7x")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20220605042723.17668-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/dma-crossbar.c