From: Bjorn Andersson Date: Mon, 5 Jan 2015 18:07:02 +0000 (-0800) Subject: remoteproc: qcom: tz-pil: Round up max address X-Git-Tag: KARO-TXSD-2017-03-24~88^2~32^2~44 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8251ca176fba840d07dae443170244275ea9c39a;p=karo-tx-linux.git remoteproc: qcom: tz-pil: Round up max address Signed-off-by: Bjorn Andersson --- 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);