crypto: mxs-dcp - Use the devm_clk_get_optional_enabled() helper
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 26 Mar 2023 14:14:25 +0000 (16:14 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Mar 2023 09:50:09 +0000 (17:50 +0800)
commitd6cb9ab4bfeaaa69147948e42d7cff080db82d07
tree9687966d1358074ecbcc42dfe2628b2580199ad0
parent75120ef34247b6ca4f1b9e1e6fedd221e2af77d5
crypto: mxs-dcp - Use the devm_clk_get_optional_enabled() helper

Use devm_clk_get_optional_enabled() instead of hand writing it.
This saves some loC and improves the semantic.

update the error handling path and the remove function accordingly.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mxs-dcp.c