Sfoglia il codice sorgente

gpio: zevio: Remove of_match_ptr around zevio_gpio_of_match

This is a DT-only driver and it will be built only when CONFIG_OF is set.
So it's pointless to use of_match_ptr.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Axel Lin 11 anni fa
parent
commit
9ea8d8102b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/gpio/gpio-zevio.c

+ 1 - 1
drivers/gpio/gpio-zevio.c

@@ -209,7 +209,7 @@ static struct platform_driver zevio_gpio_driver = {
 	.driver		= {
 		.name	= "gpio-zevio",
 		.owner	= THIS_MODULE,
-		.of_match_table = of_match_ptr(zevio_gpio_of_match),
+		.of_match_table = zevio_gpio_of_match,
 	},
 	.probe		= zevio_gpio_probe,
 };