diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-11-25 19:44:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-26 16:07:06 +0300 |
commit | 377c7b7cc11d80acf85101416d1122135f997dc5 (patch) | |
tree | 058bf4a31e21861666f5bdfe651bdd2bd3881e91 /sound/soc/qcom/lpass-apq8016.c | |
parent | b397f02171e6d6ca9b77e4cfec73c0dfe2345562 (diff) | |
download | linux-377c7b7cc11d80acf85101416d1122135f997dc5.tar.xz |
ASoC: qcom: mark OF related data as maybe unused
The driver can be compile tested with !CONFIG_OF making certain data
unused:
sound/soc/qcom/lpass-apq8016.c:294:34: warning: ‘apq8016_lpass_cpu_device_id’ defined but not used [-Wunused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201125164452.89239-10-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/lpass-apq8016.c')
-rw-r--r-- | sound/soc/qcom/lpass-apq8016.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/qcom/lpass-apq8016.c b/sound/soc/qcom/lpass-apq8016.c index 0aedb3a0a798..8507ef8f6679 100644 --- a/sound/soc/qcom/lpass-apq8016.c +++ b/sound/soc/qcom/lpass-apq8016.c @@ -291,7 +291,7 @@ static struct lpass_variant apq8016_data = { .free_dma_channel = apq8016_lpass_free_dma_channel, }; -static const struct of_device_id apq8016_lpass_cpu_device_id[] = { +static const struct of_device_id apq8016_lpass_cpu_device_id[] __maybe_unused = { { .compatible = "qcom,lpass-cpu-apq8016", .data = &apq8016_data }, {} }; |