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

Commit 596bbdf7 authored by Akhil P Oommen's avatar Akhil P Oommen
Browse files

msm: kgsl: Fix gmu & hfi irq remove failures



devm_free_irq() API fails for gmu and hfi irq due to the incorrect
dev_id parameter. Fix this by passing the correct dev_id.

Change-Id: Iac0ffc40932c8998c1f4a1ff9dfa4a1fadc9034a
Signed-off-by: default avatarAkhil P Oommen <akhilpo@codeaurora.org>
parent 829ed9cc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1725,13 +1725,13 @@ static void gmu_remove(struct kgsl_device *device)

	if (gmu->gmu_interrupt_num) {
		devm_free_irq(&gmu->pdev->dev,
				gmu->gmu_interrupt_num, gmu);
				gmu->gmu_interrupt_num, device);
		gmu->gmu_interrupt_num = 0;
	}

	if (hfi->hfi_interrupt_num) {
		devm_free_irq(&gmu->pdev->dev,
				hfi->hfi_interrupt_num, hfi);
				hfi->hfi_interrupt_num, device);
		hfi->hfi_interrupt_num = 0;
	}