[v2,10/39] ASoC: samsung: smdk_wm8994: mark OF related data as maybe unused
diff mbox series

Message ID 20201125164452.89239-11-krzk@kernel.org
State Accepted
Commit 3285b6623653befaf97687d418c99531a09037db
Headers show
Series
  • ASoC: fix !OF compile test warnings
Related show

Commit Message

Krzysztof Kozlowski Nov. 25, 2020, 4:44 p.m. UTC
The driver can be compile tested with !CONFIG_OF making certain data
unused:

  sound/soc/samsung/smdk_wm8994.c:139:34: warning: ‘samsung_wm8994_of_match’ defined but not used [-Wunused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

---

Not adding Sylwester's review as patch changed.
---
 sound/soc/samsung/smdk_wm8994.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c
index 64a1a64656ab..28d6eb14d7db 100644
--- a/sound/soc/samsung/smdk_wm8994.c
+++ b/sound/soc/samsung/smdk_wm8994.c
@@ -136,7 +136,7 @@  static struct snd_soc_card smdk = {
 	.num_links = ARRAY_SIZE(smdk_dai),
 };
 
-static const struct of_device_id samsung_wm8994_of_match[] = {
+static const struct of_device_id samsung_wm8994_of_match[] __maybe_unused = {
 	{ .compatible = "samsung,smdk-wm8994", .data = &smdk_board_data },
 	{},
 };