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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user