regulator: core: Properly handle case where supply is the couple
authorDmitry Osipenko <digetx@gmail.com>
Sun, 18 Nov 2018 21:56:18 +0000 (00:56 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Nov 2018 12:33:18 +0000 (12:33 +0000)
commit089e2cc2e1861ad13a56811aa538419989346089
treeff28312962a161517803bc7431d435288abb5fca
parentf8702f9e4aa7b45131af3df5531d6e3835269141
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>
drivers/regulator/core.c