Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e395f9ce authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Bjorn Andersson
Browse files

remoteproc: core: Make the loaded resource table optional



Remote processors like the ones found in the Qualcomm SoCs does not have
a resource table passed to them, so make it optional by only populating
it if it does exist.

Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 3d87fa1d
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -856,11 +856,7 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
	 * copy this information to device memory.
	 * copy this information to device memory.
	 */
	 */
	loaded_table = rproc_find_loaded_rsc_table(rproc, fw);
	loaded_table = rproc_find_loaded_rsc_table(rproc, fw);
	if (!loaded_table) {
	if (loaded_table)
		ret = -EINVAL;
		goto clean_up;
	}

		memcpy(loaded_table, rproc->cached_table, tablesz);
		memcpy(loaded_table, rproc->cached_table, tablesz);


	/* power up the remote processor */
	/* power up the remote processor */