mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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:
parent
51b5539c03
commit
b9d15db2b8
2 changed files with 26 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue