remoteproc: add release ops in rproc_mem_entry struct
authorLoic Pallardy <loic.pallardy@st.com>
Fri, 27 Jul 2018 13:14:38 +0000 (15:14 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 10 Oct 2018 05:39:04 +0000 (22:39 -0700)
commitf2e74abfaad446765ce0350aed1d9c5eed5b1b36
treead2758e4a3380d2fc62aa16cf9524fd039e168f7
parenteb30596eae947ce9072507a3ca112a9dd4601d85
remoteproc: add release ops in rproc_mem_entry struct

Memory entry could be allocated in different ways (ioremap,
dma_alloc_coherent, internal RAM allocator...).
This patch introduces a release ops in rproc_mem_entry structure
to associate dedicated release mechanism to each memory entry descriptor
in order to keep remoteproc core generic.

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h