i2c: imx: Simplify using devm_clk_get_enabled()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 13 Mar 2023 18:33:49 +0000 (19:33 +0100)
committerWolfram Sang <wsa@kernel.org>
Thu, 16 Mar 2023 20:07:49 +0000 (21:07 +0100)
commit7da13023655d4625b72b09dd65f780804c7cc700
tree63f9fddbbc886e7eaee7eb32ea3e9481f7a8ed6e
parent7a287433c9e65e65a79411989c35c579f755dd9f
i2c: imx: Simplify using devm_clk_get_enabled()

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.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-imx.c