regulator: don't require mutex for regulator_notifier_call_chain()
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 10 Aug 2020 04:33:32 +0000 (06:33 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Sep 2020 17:35:24 +0000 (18:35 +0100)
commit3bca239d6184df61a619d78764e0481242d844b4
treeabe6e3d8718a283def01812befae6af95eaf4e40
parent6656d4462c7ac5ca0bc5d5a8a91a8c98f0fd1409
regulator: don't require mutex for regulator_notifier_call_chain()

Since 3801b86aa482 ("regulator: Refactor supply implementation
to work as regular consumers") we no longer cascade notifications
and so notifier head's built-in rwsem is enough to protect the
notifier chain. Remove the requirement to fix one case where
rdev->mutex might be forced to be taken recursively.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/5a0da9017c69a4dbc3f9b50f44476fce80a73387.1597032945.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c