ASoC: da7218: skip of_device_id table when !CONFIG_OF
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 25 Nov 2020 16:44:30 +0000 (17:44 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 26 Nov 2020 13:07:13 +0000 (13:07 +0000)
commita06cd8cf97a336c87a98c7e64e5692c5391b50e6
tree06075a98ae1aea8341d7e7a4f9d4a895b19591f1
parent5207e768347dbb3249ee83979e868850b4b9d23b
ASoC: da7218: skip of_device_id table when !CONFIG_OF

The driver can match by multiple methods.  Its of_device_id table is
referenced via of_match_ptr() so it will be unused for !CONFIG_OF
builds:

  sound/soc/codecs/da7218.c:2281:34: warning: ‘da7218_of_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20201125164452.89239-18-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7218.c