Skip to contentSkip to conversation

gpio: zevio: Remove of_match_ptr around zevio_gpio_of_match

PATCH In review Axel Lin 2 participants 2 messages Apr 8, 2014 – Apr 10, 2014 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpio/gpio-zevio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-zevio.c +1 -1
index 29b0150..97721a1 100644
@@ -215,7 +215,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,
 };
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 4 lines · Axel Lin

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.

Patch applied.

Yours,
Linus Walleij