clk: cdce925: simplify using devm_regulator_get_enable()
authorMatti Vaittinen <mazziesaccount@gmail.com>
Fri, 19 Aug 2022 19:17:53 +0000 (22:17 +0300)
committerStephen Boyd <sboyd@kernel.org>
Mon, 17 Oct 2022 23:06:49 +0000 (16:06 -0700)
commit1ea1543fed17408a285bbd736aefbd83ebf693d8
tree70961ef5b13fd52b963bbaae89488d0dc3588c50
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
clk: cdce925: simplify using devm_regulator_get_enable()

Simplify the driver using devm_regulator_get_enable() instead of
open-coding the devm_add_action_or_reset().

A (minor?) functional change is that we don't print an error in case of a
deferred probe. Now we also print the error no matter which of the
involved calls caused the failure.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/1f46b06be44527a93cd0bfd5de2fa8e2899524ab.1660934107.git.mazziesaccount@gmail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-cdce925.c