pata_imx: add devicetree support

Not much to do here, only the compatible entries have to be added.

Signed-off-by: Sascha Hauer <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
Sascha Hauer 2013-04-04 11:25:07 +02:00 • committed by Jeff Garzik
commit b9d15db2b8
2 changed files with 26 additions and 0 deletions

View file

@ -230,11 +230,20 @@ static const struct dev_pm_ops pata_imx_pm_ops = {
};
#endif
static const struct of_device_id imx_pata_dt_ids[] = {
{
.compatible = "fsl,imx27-pata",
}, {
/* sentinel */
}
};
static struct platform_driver pata_imx_driver = {
.probe = pata_imx_probe,
.remove = pata_imx_remove,
.driver = {
.name = DRV_NAME,
.of_match_table = imx_pata_dt_ids,
.owner = THIS_MODULE,
#ifdef CONFIG_PM
.pm = &pata_imx_pm_ops,