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

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
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment