mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
regulator: core: Provide managed regulator registration
Many regulator drivers have a remove function that consists solely of calling regulator_unregister() so provide a devm_regulator_register() in order to allow this repeated code to be removed and help eliminate error handling code. Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
41c7a879d1
commit
b33e46bcdc
3 changed files with 72 additions and 0 deletions
|
@ -283,6 +283,7 @@ REGULATOR
|
|||
devm_regulator_get()
|
||||
devm_regulator_put()
|
||||
devm_regulator_bulk_get()
|
||||
devm_regulator_register()
|
||||
|
||||
CLOCK
|
||||
devm_clk_get()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue