From 8251ca176fba840d07dae443170244275ea9c39a Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Mon, 5 Jan 2015 10:07:02 -0800 Subject: [PATCH] remoteproc: qcom: tz-pil: Round up max address Signed-off-by: Bjorn Andersson --- drivers/remoteproc/qcom_tz_pil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/qcom_tz_pil.c b/drivers/remoteproc/qcom_tz_pil.c index ee3821847910..50870f18174c 100644 --- a/drivers/remoteproc/qcom_tz_pil.c +++ b/drivers/remoteproc/qcom_tz_pil.c @@ -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); -- 2.39.5