ASoC: add missing compile rule for max98371
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 1 Sep 2017 04:33:01 +0000 (04:33 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 1 Sep 2017 11:06:23 +0000 (12:06 +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/max98371.c

index 1755a54e3dc9379668de08326ed14b724fe4e4da..b4d576dab48abfd3fa33ccadb00aabd6c05d920d 100644 (file)
@@ -320,6 +320,7 @@ obj-$(CONFIG_SND_SOC_MAX98088)      += snd-soc-max98088.o
 obj-$(CONFIG_SND_SOC_MAX98090) += snd-soc-max98090.o
 obj-$(CONFIG_SND_SOC_MAX98095) += snd-soc-max98095.o
 obj-$(CONFIG_SND_SOC_MAX98357A)        += snd-soc-max98357a.o
 obj-$(CONFIG_SND_SOC_MAX98090) += snd-soc-max98090.o
 obj-$(CONFIG_SND_SOC_MAX98095) += snd-soc-max98095.o
 obj-$(CONFIG_SND_SOC_MAX98357A)        += snd-soc-max98357a.o
+obj-$(CONFIG_SND_SOC_MAX98371) += snd-soc-max98371.o
 obj-$(CONFIG_SND_SOC_MAX9867)  += snd-soc-max9867.o
 obj-$(CONFIG_SND_SOC_MAX98925) += snd-soc-max98925.o
 obj-$(CONFIG_SND_SOC_MAX98926) += snd-soc-max98926.o
 obj-$(CONFIG_SND_SOC_MAX9867)  += snd-soc-max9867.o
 obj-$(CONFIG_SND_SOC_MAX98925) += snd-soc-max98925.o
 obj-$(CONFIG_SND_SOC_MAX98926) += snd-soc-max98926.o
index 781be9ba8dba0f212e1939f4cb995e64024a3d49..7bc2a17c1e94087389a04d26c982ec628d795d1b 100644 (file)
@@ -349,12 +349,14 @@ static struct snd_soc_dai_driver max98371_dai[] = {
 };
 
 static const struct snd_soc_codec_driver max98371_codec = {
 };
 
 static const struct snd_soc_codec_driver max98371_codec = {
-       .controls = max98371_snd_controls,
-       .num_controls = ARRAY_SIZE(max98371_snd_controls),
-       .dapm_routes = max98371_audio_map,
-       .num_dapm_routes = ARRAY_SIZE(max98371_audio_map),
-       .dapm_widgets = max98371_dapm_widgets,
-       .num_dapm_widgets = ARRAY_SIZE(max98371_dapm_widgets),
+       .component_driver = {
+               .controls = max98371_snd_controls,
+               .num_controls = ARRAY_SIZE(max98371_snd_controls),
+               .dapm_routes = max98371_audio_map,
+               .num_dapm_routes = ARRAY_SIZE(max98371_audio_map),
+               .dapm_widgets = max98371_dapm_widgets,
+               .num_dapm_widgets = ARRAY_SIZE(max98371_dapm_widgets),
+       },
 };
 
 static const struct regmap_config max98371_regmap = {
 };
 
 static const struct regmap_config max98371_regmap = {