diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-04 05:25:07 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2013-04-11 19:38:00 -0400 |
commit | b9d15db2b815fd5368fb993471463829fd6d1eec (patch) | |
tree | 2b8fd6ce9e0a1fde3046b9e316ca0bbfdfd5b8e7 /drivers/ata/pata_imx.c | |
parent | 51b5539c033cf5a6a7889b3cb56c122713c80423 (diff) |
pata_imx: add devicetree support
Not much to do here, only the compatible entries have to be added.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_imx.c')
-rw-r--r-- | drivers/ata/pata_imx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index adbb01d8362f..aa3d166e02eb 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c | |||
@@ -230,11 +230,20 @@ static const struct dev_pm_ops pata_imx_pm_ops = { | |||
230 | }; | 230 | }; |
231 | #endif | 231 | #endif |
232 | 232 | ||
233 | static const struct of_device_id imx_pata_dt_ids[] = { | ||
234 | { | ||
235 | .compatible = "fsl,imx27-pata", | ||
236 | }, { | ||
237 | /* sentinel */ | ||
238 | } | ||
239 | }; | ||
240 | |||
233 | static struct platform_driver pata_imx_driver = { | 241 | static struct platform_driver pata_imx_driver = { |
234 | .probe = pata_imx_probe, | 242 | .probe = pata_imx_probe, |
235 | .remove = pata_imx_remove, | 243 | .remove = pata_imx_remove, |
236 | .driver = { | 244 | .driver = { |
237 | .name = DRV_NAME, | 245 | .name = DRV_NAME, |
246 | .of_match_table = imx_pata_dt_ids, | ||
238 | .owner = THIS_MODULE, | 247 | .owner = THIS_MODULE, |
239 | #ifdef CONFIG_PM | 248 | #ifdef CONFIG_PM |
240 | .pm = &pata_imx_pm_ops, | 249 | .pm = &pata_imx_pm_ops, |