ASoC: add missing compile rule for sirf-audio-codec
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 1 Sep 2017 04:33:27 +0000 (04:33 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 1 Sep 2017 10:46:29 +0000 (11:46 +0100)
It is still using old driver style, this patch also
fixup it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Makefile
sound/soc/codecs/sirf-audio-codec.c

index b4d576dab48abfd3fa33ccadb00aabd6c05d920d..8ed3c9256a743741521b730cee41bca4dff532f2 100644 (file)
@@ -373,6 +373,7 @@ obj-$(CONFIG_SND_SOC_SIGMADSP_REGMAP)       += snd-soc-sigmadsp-regmap.o
 obj-$(CONFIG_SND_SOC_SI476X)   += snd-soc-si476x.o
 obj-$(CONFIG_SND_SOC_SN95031)  +=snd-soc-sn95031.o
 obj-$(CONFIG_SND_SOC_SPDIF)    += snd-soc-spdif-rx.o snd-soc-spdif-tx.o
+obj-$(CONFIG_SND_SOC_SIRF_AUDIO_CODEC) += sirf-audio-codec.o
 obj-$(CONFIG_SND_SOC_SSM2518)  += snd-soc-ssm2518.o
 obj-$(CONFIG_SND_SOC_SSM2602)  += snd-soc-ssm2602.o
 obj-$(CONFIG_SND_SOC_SSM2602_SPI)      += snd-soc-ssm2602-spi.o
index 6bfd25c289d1924b4cc3d33892dba97e3366a351..01d7690a15206cde0857d07c96619439b724f780 100644 (file)
@@ -432,10 +432,12 @@ static int sirf_audio_codec_remove(struct snd_soc_codec *codec)
 static struct snd_soc_codec_driver soc_codec_device_sirf_audio_codec = {
        .probe = sirf_audio_codec_probe,
        .remove = sirf_audio_codec_remove,
-       .dapm_widgets = sirf_audio_codec_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(sirf_audio_codec_dapm_widgets),
-       .dapm_routes = sirf_audio_codec_map,
-       .num_dapm_routes = ARRAY_SIZE(sirf_audio_codec_map),
+       .component_driver = {
+               .dapm_widgets = sirf_audio_codec_dapm_widgets,
+               .num_dapm_widgets = ARRAY_SIZE(sirf_audio_codec_dapm_widgets),
+               .dapm_routes = sirf_audio_codec_map,
+               .num_dapm_routes = ARRAY_SIZE(sirf_audio_codec_map),
+       },
        .idle_bias_off = true,
 };