diff options
author | Matt Redfearn <matt.redfearn@imgtec.com> | 2016-10-17 18:48:58 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-10-19 01:03:35 +0300 |
commit | 0f57dc6ae1ff0c702450083176b657ba37c07363 (patch) | |
tree | 280b82042a08c02dbb0622830d55ac2434fbdb89 /include/linux/remoteproc.h | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) | |
download | linux-0f57dc6ae1ff0c702450083176b657ba37c07363.tar.xz |
remoteproc: Keep local copy of firmware name
Storage of the firmware name was inconsistent, either storing a pointer
to a name stored with unknown ownership, or a variable length tacked
onto the end of the struct proc allocated in rproc_alloc.
In preparation for allowing the firmware of an already allocated struct
rproc to be changed, instead always keep a locally maintained copy of
the firmware name.
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc.h')
-rw-r--r-- | include/linux/remoteproc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/remoteproc.h b/include/linux/remoteproc.h index 930023b7c825..940e4cf2ac48 100644 --- a/include/linux/remoteproc.h +++ b/include/linux/remoteproc.h @@ -415,7 +415,7 @@ struct rproc { struct list_head node; struct iommu_domain *domain; const char *name; - const char *firmware; + char *firmware; void *priv; const struct rproc_ops *ops; struct device dev; |