ASoC: pcm1789: skip of_device_id table when !CONFIG_OF
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 25 Nov 2020 16:44:40 +0000 (17:44 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 26 Nov 2020 13:07:22 +0000 (13:07 +0000)
commit36cbbf009f229fe27eac869cb279de1f80aa654b
treeb5a3b75c38e57845218433ce618dcf0072117ae3
parentfff68ff65129525c88d52a05a55cabff5a4b0821
ASoC: pcm1789: 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/pcm1789-i2c.c:36:34: warning: ‘pcm1789_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-28-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm1789-i2c.c