linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table
@ 2023-03-11 11:13 Krzysztof Kozlowski
  2023-03-11 11:13 ` [PATCH 2/8] gpio: altera: " Krzysztof Kozlowski
                   ` (8 more replies)
  0 siblings, 9 replies; 18+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-11 11:13 UTC (permalink / raw)
  To: Mun Yew Tham, Linus Walleij, Bartosz Golaszewski,
	Florian Fainelli, Broadcom internal kernel review list,
	Ludovic Desroches, Palmer Dabbelt, Paul Walmsley,
	Nobuhiro Iwamatsu, Nandor Han, Semi Malinen, linux-gpio,
	linux-kernel, linux-rpi-kernel, linux-arm-kernel, linux-riscv
  Cc: Krzysztof Kozlowski

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 might not be relevant here).

  drivers/gpio/gpio-ftgpio010.c:336:34: error: ‘ftgpio_gpio_of_match’ defined but not used [-Werror=unused-const-variable=]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/gpio/gpio-ftgpio010.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c
index 2728672ef9f8..31e26072f6ae 100644
--- a/drivers/gpio/gpio-ftgpio010.c
+++ b/drivers/gpio/gpio-ftgpio010.c
@@ -349,7 +349,7 @@ static const struct of_device_id ftgpio_gpio_of_match[] = {
 static struct platform_driver ftgpio_gpio_driver = {
 	.driver = {
 		.name		= "ftgpio010-gpio",
-		.of_match_table = of_match_ptr(ftgpio_gpio_of_match),
+		.of_match_table = ftgpio_gpio_of_match,
 	},
 	.probe = ftgpio_gpio_probe,
 	.remove = ftgpio_gpio_remove,
-- 
2.34.1


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-03-15 18:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-11 11:13 [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Krzysztof Kozlowski
2023-03-11 11:13 ` [PATCH 2/8] gpio: altera: " Krzysztof Kozlowski
2023-03-11 21:47   ` Linus Walleij
2023-03-11 11:13 ` [PATCH 3/8] gpio: rcar: " Krzysztof Kozlowski
2023-03-11 21:47   ` Linus Walleij
2023-03-11 11:13 ` [PATCH 4/8] gpio: visconti: " Krzysztof Kozlowski
2023-03-11 21:48   ` Linus Walleij
2023-03-11 11:13 ` [PATCH 5/8] gpio: sifive: " Krzysztof Kozlowski
2023-03-11 21:48   ` Linus Walleij
2023-03-11 11:13 ` [PATCH 6/8] gpio: sama5d2-piobu: " Krzysztof Kozlowski
2023-03-11 21:49   ` Linus Walleij
2023-03-11 11:13 ` [PATCH 7/8] gpio: xra1403: mark OF related data as maybe unused Krzysztof Kozlowski
2023-03-11 21:49   ` Linus Walleij
2023-03-11 11:13 ` [PATCH 8/8] gpio: raspberrypi-exp: " Krzysztof Kozlowski
2023-03-11 21:49   ` Linus Walleij
2023-03-15 18:36   ` Florian Fainelli
2023-03-11 21:46 ` [PATCH 1/8] gpio: ftgpio010: drop of_match_ptr for ID table Linus Walleij
2023-03-15  9:39 ` Bartosz Golaszewski

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).