]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add devres versions of notifier registration
authorCharles Keepax <ckeepax@gmail.com>
Thu, 5 Mar 2015 15:39:20 +0000 (15:39 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 5 Mar 2015 16:42:14 +0000 (16:42 +0000)
commit0d4c82366f0ebc7ac2d3a0ee1d1e9c19b590c8a3
treef894b2901d8b27144479af9a722696092d934340
parentb7d65746744b343701de14ca433982a3229390be
regulator: core: Add devres versions of notifier registration

Add devm_regulator_register_notifier, this adds the resource against the
device for the consumer supply we are registering the notifier for. There
seem to be few use-cases where this wouldn't be the users intention and
this ensures the notifiers will always be removed at the correct time.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/devres.c
include/linux/regulator/consumer.h