interconnect: qcom: Fix the link error on 32bit architecture

Update the bcm_div function to use do_div() to prevent compiler
from generating undefined reference to `__aeabi_uldivmod' warnings
on 32bit architecture.

Change-Id: Iba37b5f286e76b0ce903b6e0e0344e9659b0004f
Signed-off-by: Naveen Yadav <naveenky@codeaurora.org>
This commit is contained in:
Naveen Yadav 2020-06-05 18:30:09 +05:30
commit b3cf25f2a8

View file

@ -61,7 +61,9 @@ static u64 bcm_div(u64 num, u64 base)
if (num && num < base)
return 1;
return num / base;
do_div(num, base);
return num;
}
static void bcm_aggregate(struct qcom_icc_bcm *bcm, bool init)