From: Nikita Shubin Date: Sat, 14 Jan 2023 07:58:48 +0000 (+0300) Subject: pata: cirrus: add DT support for Cirrus EP93xx X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0e3feef377817ef9bab79efc3e97f458b7fe397e;p=linux.git 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 --- diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index c6e043e05d43b..0d6ead591690b 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 @@ -1016,9 +1018,16 @@ static int ep93xx_pata_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id ep93xx_pata_of_ids[] = { + { .compatible = "cirrus,ep9312-pata" }, + {}, +}; +MODULE_DEVICE_TABLE(of, ep93xx_pata_of_ids); + static struct platform_driver ep93xx_pata_platform_driver = { .driver = { .name = DRV_NAME, + .of_match_table = ep93xx_pata_of_ids, }, .probe = ep93xx_pata_probe, .remove = ep93xx_pata_remove,