soc: qcom: mdt_loader: Reorder parts of __qcom_mdt_load()
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 28 Jan 2022 02:55:06 +0000 (18:55 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 3 Feb 2022 21:32:30 +0000 (15:32 -0600)
commit75d7213ce19135b8f309099f6618a03e9b397271
treeeb5d6fb0c6b19e3d8d4e88d8e4af7fe791429f7b
parentea90330fa329e4bee009223a1d5a7d9bcc364df2
soc: qcom: mdt_loader: Reorder parts of __qcom_mdt_load()

Move the traversal of the program headers to the start of the function,
to make sure that min_ and max_addr are in scope as the call to
qcom_scm_pas_mem_setup() is moved in the next commit.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20220128025513.97188-7-bjorn.andersson@linaro.org
drivers/soc/qcom/mdt_loader.c