Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3cf25f2 authored by Naveen Yadav's avatar Naveen Yadav
Browse files

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: default avatarNaveen Yadav <naveenky@codeaurora.org>
parent 485cd699
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)