ASoC: cs42l51: fix mclk support
authorOlivier Moysan <olivier.moysan@st.com>
Fri, 19 Oct 2018 15:56:35 +0000 (17:56 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 19 Oct 2018 16:06:07 +0000 (17:06 +0100)
commit318e741ee13b5a72f3051d9bb6852b1f4d02d0bb
tree0eb0025967115113c5b13cccb9a497fac9df0093
parent7ece50c9f790270e82b77589d34e54547c895a66
ASoC: cs42l51: fix mclk support

The MCLK clock is made optional for cs42l51 codec.
However, ASoC DAPM clock supply widget, expects the clock to be defined
unconditionally.
Register MCLK DAPM conditionally in codec driver,
depending on clock presence in DT.

Fixes: 5e8d63a726f8 ("ASoC: cs42l51: add mclk support")
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l51.c