Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: zl38060: Mark OF related data as maybe unused

The driver can be compile tested with !CONFIG_OF making certain data
unused:

sound/soc/codecs/zl38060.c:611:34: error: ‘zl38_dt_ids’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230310214333.274903-10-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
da1f2282 075a430d

+1 -1
+1 -1
sound/soc/codecs/zl38060.c
··· 608 608 &zl38_dai, 1); 609 609 } 610 610 611 - static const struct of_device_id zl38_dt_ids[] = { 611 + static const struct of_device_id zl38_dt_ids[] __maybe_unused = { 612 612 { .compatible = "mscc,zl38060", }, 613 613 { /* sentinel */ } 614 614 };