Skip to contentSkip to conversation

mux: adg792a: remove incorrect of_match_ptr annotation

PATCH New Arnd Bergmann 1 participant 1 message Feb 25, 2025 Multiplexer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mux: adg792a: remove incorrect of_match_ptr annotation

From: Arnd Bergmann <[email protected]>

Building with W=1 shows a warning about adg792a_of_match being unused when CONFIG_OF is disabled:

drivers/mux/adg792a.c:134:34: error: unused variable 'adg792a_of_match' [-Werror,-Wunused-const-variable]

---
 drivers/mux/adg792a.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mux/adg792a.c +1 -1
index 4da5aecb9fc6..a5afe29e3cf1 100644
@@ -141,7 +141,7 @@ MODULE_DEVICE_TABLE(of, adg792a_of_match);
 static struct i2c_driver adg792a_driver = {
 	.driver		= {
 		.name		= "adg792a",
-		.of_match_table = of_match_ptr(adg792a_of_match),
+		.of_match_table = adg792a_of_match,
 	},
 	.probe		= adg792a_probe,
 	.id_table	= adg792a_id,
Signature · 1 line
2.39.5