]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
remoteproc: qcom: tz-pil: Round up max address
authorBjorn Andersson <bjorn.andersson@sonymobile.com>
Mon, 5 Jan 2015 18:07:02 +0000 (10:07 -0800)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:55:08 +0000 (09:55 +0000)
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
drivers/remoteproc/qcom_tz_pil.c

index ee3821847910d0c98b935bcc6436c642598ecac8..50870f18174c1c5e49cbf3adeb2044924f8972af 100644 (file)
@@ -343,7 +343,7 @@ static int qproc_load(struct rproc *rproc, const struct firmware *fw)
                        min_addr = phdr->p_paddr;
 
                if (phdr->p_paddr + phdr->p_memsz > max_addr)
-                       max_addr = ALIGN(phdr->p_paddr + phdr->p_memsz, SZ_4K);
+                       max_addr = round_up(phdr->p_paddr + phdr->p_memsz, SZ_4K);
        }
 
        ret = pas_init_image(qproc->pas_id, fw->data, fw->size);