]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: img-hash - use devm_clk_get_enabled() helpers
authorChunhai Guo <guochunhai@vivo.com>
Fri, 23 Aug 2024 09:52:12 +0000 (03:52 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 30 Aug 2024 10:23:43 +0000 (18:23 +0800)
commit407f8cf8e6875fc8fb3c0cda193f310340122060
tree815f1df71f9f3f312ef78b558676d05008a341f2
parenteb7bb0b56b41e9dd73d340159b8a0ce743352014
crypto: img-hash - use devm_clk_get_enabled() helpers

Simplify the code by replacing devm_clk_get() and clk_prepare_enable()
with devm_clk_get_enabled(), which also avoids the call to
clk_disable_unprepare().

Signed-off-by: Chunhai Guo <guochunhai@vivo.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/img-hash.c