Skip to content
regulator: Fixes for v4.0

The two main fixes here from Javier and Doug both fix issues seen on the
Exynos-based ARM Chromebooks with reference counting of GPIO regulators
over system suspend.  The GPIO enable code didn't properly take account
of this cases (a full analysis is in Doug's commit log).  This is fixed
by both fixing the reference counting directly and by making the resume
code skip enables it doesn't need to do.  We could skip the change in
the resume code but it's a very simple change and adds extra robustness
against problems in other drivers.