]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Provide new devm_clk helpers for prepared and enabled clocks
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 20 May 2022 07:57:36 +0000 (09:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:34 +0000 (07:52 +0100)
commit05c78c8d795fc4b4dedf4e12c2510bd4e3ac7854
treef90b6a8b0c75dd2ddd4395fe47078203ac102230
parent6f86d7c168e1ff2a25341d047119b6a2d71b54d2
clk: Provide new devm_clk helpers for prepared and enabled clocks

[ Upstream commit 7d7b91df8c497a09d6bb8be79be365c3588ce3e7 ]

When a driver keeps a clock prepared (or enabled) during the whole
lifetime of the driver, these helpers allow to simplify the drivers.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <aardelean@deviqon.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220520075737.758761-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Stable-dep-of: 340cb392a038 ("memory: atmel-sdramc: Fix missing clk_disable_unprepare in atmel_ramc_probe()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-devres.c
include/linux/clk.h