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=502596d415749f12eb55f5e245e6e9ea1d6104c2;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..4e3d01fab012a 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" }, + { /* end of table */ }, +}; + static struct platform_driver ep93xx_gpio_driver = { .driver = { .name = "gpio-ep93xx", + .of_match_table = ep93xx_gpio_match, }, .probe = ep93xx_gpio_probe, };