From: Arnd Bergmann Date: Wed, 9 Apr 2025 12:22:56 +0000 (+0200) Subject: mux: adg792a: remove incorrect of_match_ptr annotation X-Git-Tag: v6.16-rc1~30^2~37^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7ea3876af994e4fd8065af0314bce6619e73667a;p=thirdparty%2Flinux.git mux: adg792a: remove incorrect of_match_ptr annotation 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] Acked-by: Peter Rosin Signed-off-by: Arnd Bergmann Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20250409122314.2848028-4-arnd@kernel.org Signed-off-by: Krzysztof Kozlowski --- diff --git a/drivers/mux/adg792a.c b/drivers/mux/adg792a.c index 4da5aecb9fc62..a5afe29e3cf10 100644 --- a/drivers/mux/adg792a.c +++ b/drivers/mux/adg792a.c @@ -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,