From: Nikita Shubin Date: Fri, 27 Jan 2023 08:52:06 +0000 (+0300) Subject: gpio: ep93xx: add DT support for gpio-ep93xx X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=170ec1b68a5b2124cd5c6cef90eb32e775997c0b;p=linux.git gpio: ep93xx: add DT support for gpio-ep93xx Add match table. Signed-off-by: Nikita Shubin --- diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index ca508c7c4f2fe..5e328e4411cc7 100644 --- a/drivers/gpio/gpio-ep93xx.c +++ b/drivers/gpio/gpio-ep93xx.c @@ -363,9 +363,15 @@ static int ep93xx_gpio_probe(struct platform_device *pdev) return devm_gpiochip_add_data(&pdev->dev, gc, egc); } +static const struct of_device_id ep93xx_gpio_match[] = { + { .compatible = "cirrus,ep9301-gpio" }, + { /* sentinel */ } +}; + static struct platform_driver ep93xx_gpio_driver = { .driver = { .name = "gpio-ep93xx", + .of_match_table = ep93xx_gpio_match, }, .probe = ep93xx_gpio_probe, };