mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
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:
parent
485cd69967
commit
b3cf25f2a8
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue