mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
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 <peda@axentia.se> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20250409122314.2848028-4-arnd@kernel.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
parent
702a09507d
commit
7ea3876af9
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue