From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: "Andy Gross" <agross@kernel.org>, "Bjorn Andersson" <andersson@kernel.org>, "Konrad Dybcio" <konrad.dybcio@linaro.org>, "Sebastian Reichel" <sre@kernel.org>, "Claudiu Beznea" <claudiu.beznea@microchip.com>, "Liam Girdwood" <lgirdwood@gmail.com>, "Mark Brown" <broonie@kernel.org>, "Jaroslav Kysela" <perex@perex.cz>, "Takashi Iwai" <tiwai@suse.com>, "Nicolas Ferre" <nicolas.ferre@microchip.com>, "Alexandre Belloni" <alexandre.belloni@bootlin.com>, "Lars-Peter Clausen" <lars@metafoo.de>, "Nuno Sá" <nuno.sa@analog.com>, "Oder Chiou" <oder_chiou@realtek.com>, "Srinivas Kandagatla" <srinivas.kandagatla@linaro.org>, "Banajit Goswami" <bgoswami@quicinc.com>, "Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>, "Sylwester Nawrocki" <s.nawrocki@samsung.com>, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/9] ASoC: samsung: rt5514-spi: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:43:28 +0100 [thread overview] Message-ID: <20230310214333.274903-5-krzysztof.kozlowski@linaro.org> (raw) In-Reply-To: <20230310214333.274903-1-krzysztof.kozlowski@linaro.org> The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). sound/soc/codecs/rt5514-spi.c:497:34: error: ‘rt5514_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- sound/soc/codecs/rt5514-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c index 362663abcb89..22c0afa01459 100644 --- a/sound/soc/codecs/rt5514-spi.c +++ b/sound/soc/codecs/rt5514-spi.c @@ -504,7 +504,7 @@ static struct spi_driver rt5514_spi_driver = { .driver = { .name = "rt5514", .pm = &rt5514_pm_ops, - .of_match_table = of_match_ptr(rt5514_of_match), + .of_match_table = rt5514_of_match, }, .probe = rt5514_spi_probe, }; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: "Andy Gross" <agross@kernel.org>, "Bjorn Andersson" <andersson@kernel.org>, "Konrad Dybcio" <konrad.dybcio@linaro.org>, "Sebastian Reichel" <sre@kernel.org>, "Claudiu Beznea" <claudiu.beznea@microchip.com>, "Liam Girdwood" <lgirdwood@gmail.com>, "Mark Brown" <broonie@kernel.org>, "Jaroslav Kysela" <perex@perex.cz>, "Takashi Iwai" <tiwai@suse.com>, "Nicolas Ferre" <nicolas.ferre@microchip.com>, "Alexandre Belloni" <alexandre.belloni@bootlin.com>, "Lars-Peter Clausen" <lars@metafoo.de>, "Nuno Sá" <nuno.sa@analog.com>, "Oder Chiou" <oder_chiou@realtek.com>, "Srinivas Kandagatla" <srinivas.kandagatla@linaro.org>, "Banajit Goswami" <bgoswami@quicinc.com>, "Krzysztof Kozlowski" <krzysztof.kozlowski@linaro.org>, "Sylwester Nawrocki" <s.nawrocki@samsung.com>, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 4/9] ASoC: samsung: rt5514-spi: Drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:43:28 +0100 [thread overview] Message-ID: <20230310214333.274903-5-krzysztof.kozlowski@linaro.org> (raw) In-Reply-To: <20230310214333.274903-1-krzysztof.kozlowski@linaro.org> The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). sound/soc/codecs/rt5514-spi.c:497:34: error: ‘rt5514_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- sound/soc/codecs/rt5514-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c index 362663abcb89..22c0afa01459 100644 --- a/sound/soc/codecs/rt5514-spi.c +++ b/sound/soc/codecs/rt5514-spi.c @@ -504,7 +504,7 @@ static struct spi_driver rt5514_spi_driver = { .driver = { .name = "rt5514", .pm = &rt5514_pm_ops, - .of_match_table = of_match_ptr(rt5514_of_match), + .of_match_table = rt5514_of_match, }, .probe = rt5514_spi_probe, }; -- 2.34.1
next prev parent reply other threads:[~2023-03-10 21:45 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-10 21:43 [PATCH 1/9] ASoC: qcom: lpass-sc7280: Drop of_match_ptr for ID table Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH] power: reset: qcom-pon: drop " Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 22:35 ` Krzysztof Kozlowski 2023-03-10 22:35 ` Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH 2/9] ASoC: atmel: sam9x5_wm8731: Drop " Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH 3/9] ASoC: samsung: aries_wm8994: " Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski [this message] 2023-03-10 21:43 ` [PATCH 4/9] ASoC: samsung: rt5514-spi: " Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH 5/9] ASoC: codecs: adau1977-spi: Mark OF related data as maybe unused Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH 6/9] ASoC: codecs: pcm179x-spi: " Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH 7/9] ASoC: codecs: rt1019: " Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH 8/9] ASoC: codecs: src4xxx-i2c: " Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-10 21:43 ` [PATCH 9/9] ASoC: codecs: zl38060: " Krzysztof Kozlowski 2023-03-10 21:43 ` Krzysztof Kozlowski 2023-03-13 19:07 ` (subset) [PATCH 1/9] ASoC: qcom: lpass-sc7280: Drop of_match_ptr for ID table Mark Brown 2023-03-13 19:07 ` 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=20230310214333.274903-5-krzysztof.kozlowski@linaro.org \ --to=krzysztof.kozlowski@linaro.org \ --cc=agross@kernel.org \ --cc=alexandre.belloni@bootlin.com \ --cc=alsa-devel@alsa-project.org \ --cc=andersson@kernel.org \ --cc=bgoswami@quicinc.com \ --cc=broonie@kernel.org \ --cc=claudiu.beznea@microchip.com \ --cc=konrad.dybcio@linaro.org \ --cc=lars@metafoo.de \ --cc=lgirdwood@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-arm-msm@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=nicolas.ferre@microchip.com \ --cc=nuno.sa@analog.com \ --cc=oder_chiou@realtek.com \ --cc=perex@perex.cz \ --cc=s.nawrocki@samsung.com \ --cc=sre@kernel.org \ --cc=srinivas.kandagatla@linaro.org \ --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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.