]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit50702c9f7317c8e8275656ea8b827de8ac246821
tree48a267870610f82494ab0b9bfad9eeea07fa8120
parent8f445574ed77036fa087a07ec6218bc2d1cce9b2
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: 550e8a8742e7 ("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