From 8c437d8f24e28ba9ce347549fc82ec410cd22acf Mon Sep 17 00:00:00 2001 From: Nikita Shubin Date: Sat, 19 Nov 2022 11:52:02 +0300 Subject: [PATCH] pata: cirrus: add DT support for Cirrus EP93xx - find register range from the device tree - get interrupts from device tree Signed-off-by: Nikita Shubin --- drivers/ata/pata_ep93xx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index 6c75a22db12b9..9e9e44d58c77d 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c @@ -40,6 +40,8 @@ #include #include #include +#include +#include #include #include #include @@ -1017,9 +1019,18 @@ static int ep93xx_pata_remove(struct platform_device *pdev) return 0; } +#ifdef CONFIG_OF +static const struct of_device_id ep93xx_pata_of_ids[] = { + { .compatible = "cirrus,ep93xx-pata" }, + {}, +}; +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); +#endif + static struct platform_driver ep93xx_pata_platform_driver = { .driver = { .name = DRV_NAME, + .of_match_table = of_match_ptr(ep93xx_pata_of_ids), }, .probe = ep93xx_pata_probe, .remove = ep93xx_pata_remove, -- 2.30.2