diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-11-25 19:44:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-26 16:07:06 +0300 |
commit | 3285b6623653befaf97687d418c99531a09037db (patch) | |
tree | 50cd0d005a532194ef90d4dfa15d41faea48f205 /sound | |
parent | 377c7b7cc11d80acf85101416d1122135f997dc5 (diff) | |
download | linux-3285b6623653befaf97687d418c99531a09037db.tar.xz |
ASoC: samsung: smdk_wm8994: mark OF related data as maybe unused
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>
Link: https://lore.kernel.org/r/20201125164452.89239-11-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/samsung/smdk_wm8994.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, {}, }; |