[PATCH v5 5/6] i2c: imx: Simplify using devm_clk_get_enableded()
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Thu Apr 22 17:35:37 BST 2021
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 at pengutronix.de>
> Acked-by: Wolfram Sang <wsa at kernel.org>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
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/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210422/e60d5f51/attachment.sig>
More information about the linux-arm-kernel
mailing list