mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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: 1c6fcc54ec ("msm: kgsl: Enable the CX GSDC before accessing IOMMU registers")
Change-Id: Ic0dedbad7d68d3dfb2344525d79d9d563e28d6d6
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
This commit is contained in:
parent
50ae563cd8
commit
0da17b7033
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Reference in a new issue