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

Commit 6bf87d17 authored by Mark Brown's avatar Mark Brown Committed by Liam Girdwood
Browse files

regulator: Warn when unregistering an in-use regulator



We're probably going to start oopsing fairly soon after this happens.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent a7a1ad90
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2253,6 +2253,7 @@ void regulator_unregister(struct regulator_dev *rdev)
		return;

	mutex_lock(&regulator_list_mutex);
	WARN_ON(rdev->open_count);
	unset_regulator_supplies(rdev);
	list_del(&rdev->list);
	if (rdev->supply)