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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:35:18 +0000 (16:35 +0200)
commit568b2bd79b59f3c376bec40d7e93fb22c9d8a65f
tree20502094828900ea80453b47048c5dd18597056f
parent2f6ded79068cac8cff41d5d5632564165d98ee12
dmaengine: ti: Add missing put_device in ti_dra7_xbar_route_allocate

commit 615a4bfc426e11dba05c2cf343f9ac752fb381d2 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/ti/dma-crossbar.c