Thread (10 messages) 10 messages, 2 authors, 2021-04-22

Re: [PATCH v5 5/6] i2c: imx: Simplify using devm_clk_get_enableded()

From: Uwe Kleine-König <hidden>
Date: 2021-04-22 16:35:46
Also in: linux-clk, linux-i2c

On Thu, Apr 22, 2021 at 08:57:25AM +0200, Uwe Kleine-König wrote:
devm_clk_get_enabled() returns the clk already (prepared and) enabled
and the automatically called cleanup cares for disabling (and
unpreparing). So simplify .probe() and .remove() accordingly.

Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Uwe Kleine-König <redacted>
A propos typos: This patch needs $Subject ~= s/enableded/enabled/

Will fix this for the next submission round.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help