remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments
authorPeng Fan <peng.fan@nxp.com>
Wed, 13 Apr 2022 03:30:38 +0000 (11:30 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 13 Apr 2022 17:14:17 +0000 (11:14 -0600)
commitc7457143668a98e5ddb0ab92d1c61d8899f7ac74
tree321a93f0e810acf1af1191cd5c5d3bfdd6149028
parentf340d5a19dc76c6b29eeb23537fd7345611e9117
remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments

remoteproc elf loader supports the specific case that segments
have PT_LOAD and memsz/filesz set to zero, so no duplicate
code.

Acked-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20220413033038.1715945-3-peng.fan@oss.nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c