diff options
| author | Krzysztof Kozlowski <[email protected]> | 2023-03-11 11:13:04 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2023-03-15 09:38:13 +0000 |
| commit | 6ae42529547a4f3296fcecbfa3d2cf21c7196773 (patch) | |
| tree | 086e64ac9c5a8aa9448068ec6d7180fb329b5fda | |
| parent | gpio: visconti: drop of_match_ptr for ID table (diff) | |
| download | kernel-6ae42529547a4f3296fcecbfa3d2cf21c7196773.tar.gz kernel-6ae42529547a4f3296fcecbfa3d2cf21c7196773.zip | |
gpio: sifive: drop of_match_ptr for ID table
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-sifive.c:263:34: error: ‘sifive_gpio_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
| -rw-r--r-- | drivers/gpio/gpio-sifive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c index bc5660f61c57..98939cd4a71e 100644 --- a/drivers/gpio/gpio-sifive.c +++ b/drivers/gpio/gpio-sifive.c @@ -270,7 +270,7 @@ static struct platform_driver sifive_gpio_driver = { .probe = sifive_gpio_probe, .driver = { .name = "sifive_gpio", - .of_match_table = of_match_ptr(sifive_gpio_match), + .of_match_table = sifive_gpio_match, }, }; builtin_platform_driver(sifive_gpio_driver) |
