mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-13 03:56:25 +00:00
2f0d67bf4c
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> |
||
---|---|---|
.. | ||
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-periph.c | ||
clk-pll-out.c | ||
clk-pll.c | ||
clk-sdmmc-mux.c | ||
clk-super.c | ||
clk-tegra-audio.c | ||
clk-tegra-fixed.c | ||
clk-tegra-periph.c | ||
clk-tegra-super-cclk.c | ||
clk-tegra-super-gen4.c | ||
clk-tegra20-emc.c | ||
clk-tegra20.c | ||
clk-tegra30.c | ||
clk-tegra114.c | ||
clk-tegra124-dfll-fcpu.c | ||
clk-tegra124-emc.c | ||
clk-tegra124.c | ||
clk-tegra210-emc.c | ||
clk-tegra210.c | ||
clk-utils.c | ||
clk.c | ||
clk.h | ||
cvb.c | ||
cvb.h | ||
Kconfig | ||
Makefile |