projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82dbe1a
)
sata: ahci-da850: add device tree match table
author
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Mon, 30 Jan 2017 10:02:04 +0000
(11:02 +0100)
committer
Sekhar Nori
<nsekhar@ti.com>
Tue, 31 Jan 2017 12:18:04 +0000
(17:48 +0530)
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>
drivers/ata/ahci_da850.c
patch
|
blob
|
history
diff --git
a/drivers/ata/ahci_da850.c
b/drivers/ata/ahci_da850.c
index e397bab80a23ae53d321c676819cea32cca20192..72126a0415fbd1f3338125e20d55bfc18d9e93af 100644
(file)
--- a/
drivers/ata/ahci_da850.c
+++ b/
drivers/ata/ahci_da850.c
@@
-121,11
+121,18
@@
disable_resources:
static SIMPLE_DEV_PM_OPS(ahci_da850_pm_ops, ahci_platform_suspend,
ahci_platform_resume);
+static const struct of_device_id ahci_da850_of_match[] = {
+ { .compatible = "ti,da850-ahci", },
+ { },
+};
+MODULE_DEVICE_TABLE(of, ahci_da850_of_match);
+
static struct platform_driver ahci_da850_driver = {
.probe = ahci_da850_probe,
.remove = ata_platform_remove_one,
.driver = {
.name = DRV_NAME,
+ .of_match_table = ahci_da850_of_match,
.pm = &ahci_da850_pm_ops,
},
};