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

Commit 3e687e4a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "regulator: cpr3-regulator: unregister CPR IRQ affinity notifier correctly"

parents 74a8147a d7b08e9f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5995,6 +5995,9 @@ int cpr3_regulator_unregister(struct cpr3_controller *ctrl)
	cpr3_regulator_debugfs_ctrl_remove(ctrl);
	mutex_unlock(&cpr3_controller_list_mutex);

	if (ctrl->irq && !cpumask_empty(&ctrl->irq_affinity_mask))
		unregister_hotcpu_notifier(&ctrl->cpu_hotplug_notifier);

	if (ctrl->ctrl_type == CPR_CTRL_TYPE_CPR4)
		rc = cpr3_ctrl_clear_cpr4_config(ctrl);
		if (rc)