ASoC: Intel: bytcr_rt5640: use devm_clk_get_optional() for mclk
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 7 Oct 2021 16:57:14 +0000 (19:57 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 11 Oct 2021 13:58:48 +0000 (14:58 +0100)
commita15ca6e3b8a21ff335a2eedbc5ba4708967be2be
treed74257680d6a8a8139592f5f6842a12a0b26ae3c
parent81d43ca17506ba32c6ead7fe4cf3b7f37368cc83
ASoC: Intel: bytcr_rt5640: use devm_clk_get_optional() for mclk

The devm_clk_get_optional() helper returns NULL when devm_clk_get()
returns -ENOENT. This makes things slightly cleaner. The added benefit
is mostly cosmetic.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211007165715.27463-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/bytcr_rt5640.c