gpio: zevio: Remove of_match_ptr around zevio_gpio_of_match
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.
Signed-off-by Axel Lin <[email protected]>
--- drivers/gpio/gpio-zevio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-zevio.c +1 -1
@@ -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
Quoted 4 lines · Axel Lin
This is a DT-only driver and it will be built only when
CONFIG_OFis set. So it's pointless to useof_match_ptr.Signed-off-by Axel Lin <[email protected]>
Patch applied.
Yours,
Linus Walleij