]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
v4l: xilinx: scd: Cleanup the DMA engine at remove() time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 4 Apr 2019 11:32:54 +0000 (14:32 +0300)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 5 Apr 2019 11:03:48 +0000 (13:03 +0200)
commite6b11343b9440dafd7ce1d38bfb2e4434514fda6
tree16d77ad32ea7449cfe24860677285cc266f65b67
parentd954a9f13c612d53aea9cddb987a876707960237
v4l: xilinx: scd: Cleanup the DMA engine at remove() time

The resources allocated by the xscd_dma_init() function are never
released. Add a new xscd_dma_cleanup() function to handle the cleanup
and call it at driver remove() time.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
drivers/media/platform/xilinx/xilinx-scenechange-dma.c
drivers/media/platform/xilinx/xilinx-scenechange.c
drivers/media/platform/xilinx/xilinx-scenechange.h