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

Commit 0da17b70 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Check the return value of regulator_enable



Fix the following compiler error:

 drivers/gpu/msm/kgsl_iommu.c:845:3: error: ignoring return value of
	‘regulator_enable’, declared with attribute warn_unused_result

Fixes: 1c6fcc54 ("msm: kgsl: Enable the CX GSDC before accessing IOMMU registers")
Change-Id: Ic0dedbad7d68d3dfb2344525d79d9d563e28d6d6
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 50ae563c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -842,7 +842,7 @@ static void kgsl_iommu_enable_clk(struct kgsl_mmu *mmu)
	struct kgsl_iommu *iommu = _IOMMU_PRIV(mmu);

	if (!IS_ERR_OR_NULL(iommu->cx_gdsc))
		regulator_enable(iommu->cx_gdsc);
		WARN_ON(regulator_enable(iommu->cx_gdsc));

	for (j = 0; j < KGSL_IOMMU_MAX_CLKS; j++) {
		if (iommu->clks[j])