aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-06-24 08:47:37 +0000
committerStephen Boyd <[email protected]>2021-06-25 23:23:07 +0000
commit2f0d67bf4cecb7b5c1c91c85c6a0c08a830adb85 (patch)
treef0ad55160a799f466b3fa8fe72a1fb7e38e5a1f5 /tools/perf/scripts/python/net_dropmonitor.py
parentMerge tag 'for-5.14-clk' of git://git.kernel.org/pub/scm/linux/kernel/git/teg... (diff)
downloadkernel-2f0d67bf4cecb7b5c1c91c85c6a0c08a830adb85.tar.gz
kernel-2f0d67bf4cecb7b5c1c91c85c6a0c08a830adb85.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Thierry Reding <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions