summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/cpr3-regulator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/cpr3-regulator.c b/drivers/regulator/cpr3-regulator.c
index c93b71c4bc37..931227b476ac 100644
--- a/drivers/regulator/cpr3-regulator.c
+++ b/drivers/regulator/cpr3-regulator.c
@@ -6040,6 +6040,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)