]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: core: Add destroy_regulator()
authorSaravana Kannan <saravanak@google.com>
Thu, 16 Jul 2020 04:20:51 +0000 (21:20 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jul 2020 15:22:45 +0000 (16:22 +0100)
commit26a8f889d06cb8d1980eb569b3224b2a915d6440
tree361ad90acb1caa407fdb84d73a5f3da14fe26722
parent277fdba277d8f20520742fbe3ab891c1b51d6c37
regulator: core: Add destroy_regulator()

Part of the regulator_get() code is already factored out into
create_regulator(). This patch factors out some of the regulator_put()
code into destroy_regulator() so that create_regulator() has a
corresponding unwind function. Subsequent patches will use this
function.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200716042053.1927676-3-saravanak@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c