[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250502203721.2117186-1-arnd@kernel.org>
Date: Fri, 2 May 2025 22:37:07 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: James Cowgill <james.cowgill@...ize.com>,
Matt Redfearn <matt.redfearn@...ize.com>,
Neil Jones <neil.jones@...ize.com>,
Nikolaos Pasaloukos <nikolaos.pasaloukos@...ize.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>
Cc: Arnd Bergmann <arnd@...db.de>,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] gpio: blzp1600: remove incorrect pf_match_ptr()
From: Arnd Bergmann <arnd@...db.de>
The blzp1600_gpio_of_match is defined unconditionally and can always be referenced
by the driver, so don't use of_match_ptr() and avoid this warning:
drivers/gpio/gpio-blzp1600.c:263:34: error: 'blzp1600_gpio_of_match' defined but not used [-Werror=unused-const-variable=]
263 | static const struct of_device_id blzp1600_gpio_of_match[] = {
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/gpio/gpio-blzp1600.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-blzp1600.c b/drivers/gpio/gpio-blzp1600.c
index 2760a13c0801..055cb296ae54 100644
--- a/drivers/gpio/gpio-blzp1600.c
+++ b/drivers/gpio/gpio-blzp1600.c
@@ -269,7 +269,7 @@ MODULE_DEVICE_TABLE(of, blzp1600_gpio_of_match);
static struct platform_driver blzp1600_gpio_driver = {
.driver = {
.name = DRIVER_NAME,
- .of_match_table = of_match_ptr(blzp1600_gpio_of_match),
+ .of_match_table = blzp1600_gpio_of_match,
},
.probe = blzp1600_gpio_probe,
};
--
2.39.5
Powered by blists - more mailing lists