]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
remoteproc: qcom-tz: Use new PAS api
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 20 Apr 2016 01:44:11 +0000 (18:44 -0700)
committerNicolas Dechesne <nicolas.dechesne@linaro.org>
Tue, 21 Jun 2016 08:02:07 +0000 (11:02 +0300)
The PAS api should not carry the clients device handle, as the metadata
allocated should be tied to the scm platform_device.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_tz_pil.c

index ae361fc26dd10ca3530e91f2aea9fcf04a1bdd33..6de08442f57f7089a63b544d4379374239183020 100644 (file)
@@ -276,8 +276,7 @@ static int qproc_load(struct rproc *rproc, const struct firmware *fw)
                        max_addr = round_up(phdr->p_paddr + phdr->p_memsz, SZ_4K);
        }
 
-       ret = qcom_scm_pas_init_image(qproc->dev,
-                               qproc->pas_id, fw->data, fw->size);
+       ret = qcom_scm_pas_init_image(qproc->pas_id, fw->data, fw->size);
        if (ret) {
                dev_err(qproc->dev, "Invalid firmware metadata\n");
                return -EINVAL;