From b4fee55d8bb5987bbb359fede32ab34594940e35 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 6 Jun 2013 13:41:16 +0200 Subject: ata: i.MX sata: Add devicetree probe support Signed-off-by: Sascha Hauer --- drivers/ata/sata-imx.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'drivers/ata') diff --git a/drivers/ata/sata-imx.c b/drivers/ata/sata-imx.c index 13bf116fdd..ef7989e610 100644 --- a/drivers/ata/sata-imx.c +++ b/drivers/ata/sata-imx.c @@ -141,9 +141,22 @@ static struct platform_device_id imx_sata_ids[] = { }, }; +static __maybe_unused struct of_device_id imx_sata_dt_ids[] = { + { + .compatible = "fsl,imx6q-ahci", + .data = (unsigned long)&data_imx6, + }, { + .compatible = "fsl,imx53-ahci", + .data = (unsigned long)&data_imx53, + }, { + /* sentinel */ + } +}; + static struct driver_d imx_sata_driver = { .name = "imx-sata", .probe = imx_sata_probe, .id_table = imx_sata_ids, + .of_compatible = DRV_OF_COMPAT(imx_sata_dt_ids), }; device_platform_driver(imx_sata_driver); -- cgit v1.2.3