Skip to content
Unverified Commit e1794aa4 authored by Saravana Kannan's avatar Saravana Kannan Committed by Mark Brown
Browse files

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: default avatarSaravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200716042053.1927676-3-saravanak@google.com
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a98bcaa9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment