From: Krzysztof Kozlowski <krzk@kernel.org>
To: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Support Opensource <support.opensource@diasemi.com>,
Oder Chiou <oder_chiou@realtek.com>,
Kevin Cernekee <cernekee@chromium.org>,
Jerome Brunet <jbrunet@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
Neil Armstrong <narmstrong@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Patrick Lai <plai@codeaurora.org>,
Banajit Goswami <bgoswami@codeaurora.org>,
Heiko Stuebner <heiko@sntech.de>,
Krzysztof Kozlowski <krzk@kernel.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-amlogic@lists.infradead.org,
linux-rockchip@lists.infradead.org
Subject: [PATCH v2 22/39] ASoC: max98095: skip of_device_id table when !CONFIG_OF
Date: Wed, 25 Nov 2020 17:44:35 +0100 [thread overview]
Message-ID: <20201125164452.89239-23-krzk@kernel.org> (raw)
In-Reply-To: <20201125164452.89239-1-krzk@kernel.org>
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/max98095.c:2151:34: warning: ‘max98095_of_match’ defined but not used [-Wunused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
sound/soc/codecs/max98095.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/codecs/max98095.c b/sound/soc/codecs/max98095.c
index 9bdc6392382a..736cd70be725 100644
--- a/sound/soc/codecs/max98095.c
+++ b/sound/soc/codecs/max98095.c
@@ -2148,11 +2148,13 @@ static const struct i2c_device_id max98095_i2c_id[] = {
};
MODULE_DEVICE_TABLE(i2c, max98095_i2c_id);
+#ifdef CONFIG_OF
static const struct of_device_id max98095_of_match[] = {
{ .compatible = "maxim,max98095", },
{ }
};
MODULE_DEVICE_TABLE(of, max98095_of_match);
+#endif
static struct i2c_driver max98095_i2c_driver = {
.driver = {
--
2.25.1
next prev parent reply other threads:[~2020-11-25 16:47 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-25 16:44 [PATCH v2 00/39] ASoC: fix !OF compile test warnings Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 01/39] ASoC: ak5558: mark OF related data as maybe unused Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 02/39] ASoC: bd28623: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 03/39] ASoC: gtm601: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 04/39] ASoC: inno_rk3036: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 05/39] ASoC: rk3328: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 06/39] ASoC: tas571x: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 07/39] ASoC: kirkwood: armada-370-db: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 08/39] ASoC: meson: t9015: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 09/39] ASoC: qcom: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 10/39] ASoC: samsung: smdk_wm8994: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 11/39] ASoC: rockchip: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 12/39] ASoC: ti: davinci: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 13/39] ASoC: uniphier: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 14/39] ASoC: ak4118: skip of_device_id table when !CONFIG_OF Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 15/39] ASoC: alc5623: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 16/39] ASoC: alc5632: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 17/39] ASoC: da7218: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 18/39] ASoC: da7219: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 19/39] ASoC: da9055: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 20/39] ASoC: es8316: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 21/39] ASoC: max98090: " Krzysztof Kozlowski
2020-11-25 16:44 ` Krzysztof Kozlowski [this message]
2020-11-25 16:44 ` [PATCH v2 23/39] ASoC: max98371: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 24/39] ASoC: max9867: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 25/39] ASoC: max98925: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 26/39] ASoC: max98926: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 27/39] ASoC: pcm1789: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 28/39] ASoC: pcm179x: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 29/39] ASoC: rt5660: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 30/39] ASoC: tas2562: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 31/39] ASoC: tlv320: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 32/39] ASoC: ts3a227e: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 33/39] ASoC: es7134: mark OF related data as maybe unused Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 34/39] ASoC: es7241: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 35/39] ASoC: samsung: i2s: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 36/39] ASoC: max98371: drop driver pm=NULL assignment Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 37/39] ASoC: max98925: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 38/39] ASoC: max98926: " Krzysztof Kozlowski
2020-11-25 16:44 ` [PATCH v2 39/39] ASoC: samsung: smdk_wm8994: remove redundant of_match_ptr() Krzysztof Kozlowski
2020-11-26 20:05 ` [PATCH v2 00/39] ASoC: fix !OF compile test warnings Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201125164452.89239-23-krzk@kernel.org \
--to=krzk@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=cernekee@chromium.org \
--cc=heiko@sntech.de \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=lgirdwood@gmail.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=narmstrong@baylibre.com \
--cc=oder_chiou@realtek.com \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@ti.com \
--cc=plai@codeaurora.org \
--cc=s.nawrocki@samsung.com \
--cc=support.opensource@diasemi.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).