]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
clk: Add a devm variant of clk_rate_exclusive_get()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 4 Jan 2024 22:55:11 +0000 (23:55 +0100)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:27 +0000 (16:27 +0200)
commit69532d172087d9313903ba934e4024e5a1ab0597
treefe98cc90a0fa811591fbcbed44a100c2275a5096
parent509abf201e9266323a2f6a0e2b65d327ac154042
clk: Add a devm variant of clk_rate_exclusive_get()

BugLink: https://bugs.launchpad.net/bugs/2075154
This allows to simplify drivers that use clk_rate_exclusive_get()
in their probe routine as calling clk_rate_exclusive_put() is cared for
automatically.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240104225512.1124519-2-u.kleine-koenig@pengutronix.de
Acked-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
(cherry picked from commit b0cde62e4c548b2e7cb535caa6eb0df135888601)
[diewald: prerequisite commit for 4268254a3948 i2c: lpi2c: Avoid calling
clk_get_rate during transfer]
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/clk/clk.c
include/linux/clk.h