summaryrefslogtreecommitdiffstats
path: root/include/linux/remoteproc.h
diff options
context:
space:
mode:
authorBjorn Andersson2018-01-06 00:58:00 +0100
committerBjorn Andersson2018-01-15 18:29:34 +0100
commitfb98e2bdbd5f5949459dcfe9976bdafdb0ed1948 (patch)
treef67e7500d32efdb60c191614dc5003a03542c4eb /include/linux/remoteproc.h
parentremoteproc: Cache resource table size (diff)
downloadkernel-qcow2-linux-fb98e2bdbd5f5949459dcfe9976bdafdb0ed1948.tar.gz
kernel-qcow2-linux-fb98e2bdbd5f5949459dcfe9976bdafdb0ed1948.tar.xz
kernel-qcow2-linux-fb98e2bdbd5f5949459dcfe9976bdafdb0ed1948.zip
remoteproc: Clone rproc_ops in rproc_alloc()
In order to allow rproc_alloc() to, in a future patch, update entries in the "ops" struct we need to make a local copy of it. Reviewed-By: Loic Pallardy <loic.pallardy@st.com> Tested-By: Loic Pallardy <loic.pallardy@st.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r--include/linux/remoteproc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h
index 6fdc62e29d6f..cc4d30a790b3 100644
--- a/include/linux/remoteproc.h
+++ b/include/linux/remoteproc.h
@@ -419,7 +419,7 @@ struct rproc {
const char *name;
char *firmware;
void *priv;
- const struct rproc_ops *ops;
+ struct rproc_ops *ops;
struct device dev;
const struct rproc_fw_ops *fw_ops;
atomic_t power;