ASoC: rt5659: Use the devm_clk_get_optional() helper
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 May 2023 14:56:00 +0000 (16:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 May 2023 10:18:54 +0000 (11:18 +0100)
commitf364eb563164f52dcc42ea265a66510c6f15f829
tree81c9a0ea0bced3983d084181103559cad6b5312b
parentc0998e0142af8037e4a0ee84dd01cd20cbe0c76e
ASoC: rt5659: Use the devm_clk_get_optional() helper

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

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/5b44b2fddd8973e949e4ae2132971b147cfd1ec1.1684594544.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5659.c