linux-xiaomi-chiron/drivers/clk/tegra
Alexandru Ardelean 2f0d67bf4c clk: tegra: clk-tegra124-dfll-fcpu: don't use devm functions for regulator
The purpose of the device-managed functions is to bind the life-time of an
object to that of a parent device object.

This is not the case for the 'vdd-cpu' regulator in this driver. A
reference is obtained via devm_regulator_get() and immediately released
with devm_regulator_put().

In this case, the usage of devm_ functions is slightly excessive, as the
un-managed versions of these functions is a little cleaner (and slightly
more economical in terms of allocation).

This change converts the devm_regulator_{get,put}() to
regulator_{get,put}() in the get_alignment_from_regulator() function of
this driver.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210624084737.42336-1-aardelean@deviqon.com
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2021-06-25 16:23:07 -07:00
..
clk-audio-sync.c
clk-bpmp.c
clk-dfll.c
clk-dfll.h
clk-divider.c
clk-id.h
clk-periph-fixed.c
clk-periph-gate.c clk: tegra: Don't deassert reset on enabling clocks 2021-05-31 15:16:46 +02:00
clk-periph.c clk: tegra: Fix refcounting of gate clocks 2021-05-31 15:16:24 +02:00
clk-pll-out.c
clk-pll.c clk: tegra: Don't allow zero clock rate for PLLs 2021-05-31 15:16:26 +02:00
clk-sdmmc-mux.c
clk-super.c
clk-tegra-audio.c
clk-tegra-fixed.c
clk-tegra-periph.c clk: tegra: Mark external clocks as not having reset control 2021-05-31 15:16:46 +02:00
clk-tegra-super-cclk.c clk: tegra: cclk: Handle thermal DIV2 CPU frequency throttling 2021-05-31 15:16:26 +02:00
clk-tegra-super-gen4.c
clk-tegra20-emc.c
clk-tegra20.c clk: tegra: Halve SCLK rate on Tegra20 2021-05-31 15:16:25 +02:00
clk-tegra30.c clk: tegra: Don't deassert reset on enabling clocks 2021-05-31 15:16:46 +02:00
clk-tegra114.c
clk-tegra124-dfll-fcpu.c clk: tegra: clk-tegra124-dfll-fcpu: don't use devm functions for regulator 2021-06-25 16:23:07 -07:00
clk-tegra124-emc.c clk: tegra: tegra124-emc: Fix clock imbalance in emc_set_timing() 2021-06-02 11:08:00 +02:00
clk-tegra124.c
clk-tegra210-emc.c
clk-tegra210.c clk: tegra: Add PLLE HW power sequencer control 2021-03-24 14:01:58 +01:00
clk-utils.c
clk.c
clk.h clk: tegra: Don't deassert reset on enabling clocks 2021-05-31 15:16:46 +02:00
cvb.c
cvb.h
Kconfig
Makefile