regulator: core: Properly handle case where supply is the couple

Check whether supply regulator is the couple to avoid infinite recursion
during of locking.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Dmitry Osipenko 2018-11-19 00:56:18 +03:00 • committed by Mark Brown
commit 089e2cc2e1
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0