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

Commit 7655e91d authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Only free interrupts if they have been set" into msm-4.9

parents 10cef6cd f7febd6f
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -1345,12 +1345,19 @@ void gmu_remove(struct kgsl_device *device)

	gmu_stop(device);

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

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

	if (gmu->ccl) {
		msm_bus_scale_unregister_client(gmu->ccl);