ASoC: da7219: clkdev_drop usage depends on CONFIG_COMMON_CLK
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Tue, 13 Mar 2018 09:07:54 +0000 (09:07 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 13 Mar 2018 16:18:57 +0000 (09:18 -0700)
commit0f9d0e355d7c3fa5756313765a77961074017845
treee75ae5be94d36f8d8f1244a0e155b43ae716ef78
parentfc8f7ea2d6c074baaad202c9187962bfa493ef13
ASoC: da7219: clkdev_drop usage depends on CONFIG_COMMON_CLK

Fixes: ASoC: da7219: Add common clock usage for providing DAI clks

clkdev_drop usage in the codec remove function should be dependent
on if CONFIG_COMMON_CLK is defined for the platform, otherwise it
can cause build failures for platforms that do not support this.
The clkdev_* functions are still defined for those platforms, in
headers and source but the functions are not linked in.

This patch resolves this issue, so clkdev_drop is only used if
CONFIG_COMMON_CLK is defined.

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219.c