ASoC: cs42l51: Use the devm_clk_get_optional() helper
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 20 May 2023 14:50:54 +0000 (16:50 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 22 May 2023 10:18:53 +0000 (11:18 +0100)
commitc0998e0142af8037e4a0ee84dd01cd20cbe0c76e
tree743de30acfa293e74bdeb99e26135f9817012b89
parent8c03fd5fbd3e5a534675dffd5647166e919e1fc2
ASoC: cs42l51: 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/3debf3bb7ea504ee9ca2d8eb0f948a426681cbdd.1684594240.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l51.c