diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2020-09-25 18:35:51 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-09-25 19:36:58 +0200 |
commit | 156d0273f62fd437b25dced944788d8784f0212c (patch) | |
tree | 7c66c16584654aacdd9ef40888a367f9de2595df /sound/soc/qcom/qdsp6/q6asm-dai.c | |
parent | Merge series "ASoC: Intel: sdw machine driver updates for 5.10" from Kai Vehm... (diff) | |
download | linux-156d0273f62fd437b25dced944788d8784f0212c.tar.xz linux-156d0273f62fd437b25dced944788d8784f0212c.zip |
ASoC: qdsp6: add ifdef CONFIG_OF around of_device_id
Add ifdef CONFIG_OF around of_device_id table to fix below
W=1 compile test warning with !CONFIG_OF:
sound/soc/qcom/qdsp6/q6afe-clocks.c:254:34: warning: unused variable
'q6afe_clock_device_id' [-Wunused-const-variable]
Fix this warning for across all qdsp6 drivers.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200925163552.20717-2-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/qcom/qdsp6/q6asm-dai.c')
-rw-r--r-- | sound/soc/qcom/qdsp6/q6asm-dai.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index a1dd31f306ce..c9ac9c1d26c4 100644 --- a/sound/soc/qcom/qdsp6/q6asm-dai.c +++ b/sound/soc/qcom/qdsp6/q6asm-dai.c @@ -1334,11 +1334,13 @@ static int q6asm_dai_probe(struct platform_device *pdev) pdata->dais, pdata->num_dais); } +#ifdef CONFIG_OF static const struct of_device_id q6asm_dai_device_id[] = { { .compatible = "qcom,q6asm-dais" }, {}, }; MODULE_DEVICE_TABLE(of, q6asm_dai_device_id); +#endif static struct platform_driver q6asm_dai_platform_driver = { .driver = { |