i2c: sun6i-p2wi: Use devm_clk_get_enabled()
authorAndi Shyti <andi.shyti@kernel.org>
Sun, 11 Jun 2023 22:57:00 +0000 (00:57 +0200)
committerWolfram Sang <wsa@kernel.org>
Fri, 23 Jun 2023 09:57:20 +0000 (11:57 +0200)
commit75ff8a340a81252b71611ca3a60c03cf86310955
treeb025c206a7481e44c41ed3a713d78f2b82096229
parent9aaccc6565fcbfe1fc062878009f5e8efa979d11
i2c: sun6i-p2wi: Use devm_clk_get_enabled()

Replace the pair of functions, devm_clk_get() and clk_prepare_enable(),
with a single function devm_clk_get_enabled().

Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-sun6i-p2wi.c