diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2019-12-18 23:10:29 +0200 |
---|---|---|
committer | Daniel Baluta <daniel.baluta@nxp.com> | 2019-12-18 23:17:33 +0200 |
commit | 77255cbb7018f1d54c62f0ec909dbe5f7037b740 (patch) | |
tree | 0069d618b98cd2d1a25d8c6283512eb6109abff3 /sound/soc/sof/sof-of-dev.c | |
parent | 689df5b5e54a41bce1b64b29d57a29c07074e44b (diff) |
LF-537-10: ASoC: SOF Fix unused variable ‘mach’ warning
mach is only used now in nocodec usecase, so properly
guard it to avoid compiler warning.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/sof/sof-of-dev.c')
-rw-r--r-- | sound/soc/sof/sof-of-dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-of-dev.c b/sound/soc/sof/sof-of-dev.c index f5a8c78c7a8d..f4a2992d58e5 100644 --- a/sound/soc/sof/sof-of-dev.c +++ b/sound/soc/sof/sof-of-dev.c @@ -67,7 +67,9 @@ static int sof_of_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; const struct sof_dev_desc *desc; /*TODO: create a generic snd_soc_xxx_mach */ +#if IS_ENABLED(CONFIG_SND_SOC_SOF_FORCE_NOCODEC_MODE) struct snd_soc_acpi_mach *mach; +#endif struct snd_sof_pdata *sof_pdata; const struct snd_sof_dsp_ops *ops; int ret; |