diff options
author | Suman Anna <s-anna@ti.com> | 2020-04-17 02:20:36 +0200 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-04-21 04:33:09 +0200 |
commit | db65527836156fe9c6abe6b9b4aa02fac49a67e3 (patch) | |
tree | ac746d56b0c22dcb66fbe14062a4523267297cbf /include/linux/remoteproc.h | |
parent | remoteproc: Get rid of tedious error path (diff) | |
download | linux-db65527836156fe9c6abe6b9b4aa02fac49a67e3.tar.xz linux-db65527836156fe9c6abe6b9b4aa02fac49a67e3.zip |
remoteproc: Use a local copy for the name field
The current name field used in the remoteproc structure is simply
a pointer to a name field supplied during the rproc_alloc() call.
The pointer passed in by remoteproc drivers during registration is
typically a dev_name pointer, but it is possible that the pointer
will no longer remain valid if the devices themselves were created
at runtime like in the case of of_platform_populate(), and were
deleted upon any failures within the respective remoteproc driver
probe function.
So, allocate and maintain a local copy for this name field to
keep it agnostic of the logic used in the remoteproc drivers.
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Suman Anna <s-anna@ti.com>
Link: https://lore.kernel.org/r/20200417002036.24359-3-s-anna@ti.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions