summaryrefslogtreecommitdiff
path: root/drivers/remoteproc/remoteproc_elf_loader.c
diff options
context:
space:
mode:
authorClement Leger <cleger@kalray.eu>2020-04-10 13:24:32 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-04-20 08:53:02 +0300
commit418fd78771220f5e522d02676758ed824c349fd5 (patch)
treef9d8d3eb995dd481a573d5a4389fefd0a484d825 /drivers/remoteproc/remoteproc_elf_loader.c
parent4df4f8be8b3e9ce807ba47c030893d711abe6ee3 (diff)
downloadlinux-418fd78771220f5e522d02676758ed824c349fd5.tar.xz
remoteproc: add rproc_coredump_set_elf_info
This function allows drivers to correctly setup the coredump output elf information. Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Clement Leger <cleger@kalray.eu> Link: https://lore.kernel.org/r/20200410102433.2672-2-cleger@kalray.eu Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/remoteproc_elf_loader.c')
-rw-r--r--drivers/remoteproc/remoteproc_elf_loader.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/remoteproc/remoteproc_elf_loader.c b/drivers/remoteproc/remoteproc_elf_loader.c
index 16e2c496fd45..4869fb7d8fe4 100644
--- a/drivers/remoteproc/remoteproc_elf_loader.c
+++ b/drivers/remoteproc/remoteproc_elf_loader.c
@@ -248,9 +248,6 @@ int rproc_elf_load_segments(struct rproc *rproc, const struct firmware *fw)
memset(ptr + filesz, 0, memsz - filesz);
}
- if (ret == 0)
- rproc->elf_class = class;
-
return ret;
}
EXPORT_SYMBOL(rproc_elf_load_segments);