summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2017-01-30 05:02:04 -0500
committerSekhar Nori <nsekhar@ti.com>2017-01-31 07:18:04 -0500
commitbf4ae3f07889db3056033d462dcd37eb6385fbc2 (patch)
treee503b9569ec775dbc4fa7700d673994705611fb4 /drivers/ata
parent82dbe1a68fd65a4dae8f01e4f214221857f8161b (diff)
sata: ahci-da850: add device tree match table
We're using device tree for da850-lcdk. Add the match table to allow to probe the driver. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci_da850.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c
index e397bab80a23..72126a0415fb 100644
--- a/drivers/ata/ahci_da850.c
+++ b/drivers/ata/ahci_da850.c
@@ -121,11 +121,18 @@ disable_resources:
121static SIMPLE_DEV_PM_OPS(ahci_da850_pm_ops, ahci_platform_suspend, 121static SIMPLE_DEV_PM_OPS(ahci_da850_pm_ops, ahci_platform_suspend,
122 ahci_platform_resume); 122 ahci_platform_resume);
123 123
124static const struct of_device_id ahci_da850_of_match[] = {
125 { .compatible = "ti,da850-ahci", },
126 { },
127};
128MODULE_DEVICE_TABLE(of, ahci_da850_of_match);
129
124static struct platform_driver ahci_da850_driver = { 130static struct platform_driver ahci_da850_driver = {
125 .probe = ahci_da850_probe, 131 .probe = ahci_da850_probe,
126 .remove = ata_platform_remove_one, 132 .remove = ata_platform_remove_one,
127 .driver = { 133 .driver = {
128 .name = DRV_NAME, 134 .name = DRV_NAME,
135 .of_match_table = ahci_da850_of_match,
129 .pm = &ahci_da850_pm_ops, 136 .pm = &ahci_da850_pm_ops,
130 }, 137 },
131}; 138};