dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()
authorYu Kuai <yukuai3@huawei.com>
Mon, 17 Aug 2020 11:57:27 +0000 (19:57 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 19 Aug 2020 04:28:38 +0000 (09:58 +0530)
commit3832b78b3ec2cf51e07102f9b4480e343459b20f
tree154fddb1b84b7c321372a65a4031013cfc3260d1
parent0cef8e2c5a07d482ec907249dbd6687e8697677f
dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()

If of_find_device_by_node() succeed, at_dma_xlate() doesn't have a
corresponding put_device(). Thus add put_device() to fix the exception
handling for this function implementation.

Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200817115728.1706719-3-yukuai3@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_hdmac.c