Commit 3c39c1a5 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Samuel Ortiz

NFC: trf7970a: Add OF match table

The Documentation/devicetree/bindings/net/nfc/trf7970a.txt DT binding doc
lists "ti,trf7970a" as a compatible string but the corresponding driver
does not have an OF match table. Add the table to the driver so the SPI
core can do an OF style match.
Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent d7e7f02f
...@@ -2211,6 +2211,12 @@ static const struct dev_pm_ops trf7970a_pm_ops = { ...@@ -2211,6 +2211,12 @@ static const struct dev_pm_ops trf7970a_pm_ops = {
trf7970a_pm_runtime_resume, NULL) trf7970a_pm_runtime_resume, NULL)
}; };
static const struct of_device_id trf7970a_of_match[] = {
{ .compatible = "ti,trf7970a", },
{ /* sentinel */ },
};
MODULE_DEVICE_TABLE(of, trf7970a_of_match);
static const struct spi_device_id trf7970a_id_table[] = { static const struct spi_device_id trf7970a_id_table[] = {
{ "trf7970a", 0 }, { "trf7970a", 0 },
{ } { }
...@@ -2223,6 +2229,7 @@ static struct spi_driver trf7970a_spi_driver = { ...@@ -2223,6 +2229,7 @@ static struct spi_driver trf7970a_spi_driver = {
.id_table = trf7970a_id_table, .id_table = trf7970a_id_table,
.driver = { .driver = {
.name = "trf7970a", .name = "trf7970a",
.of_match_table = of_match_ptr(trf7970a_of_match),
.owner = THIS_MODULE, .owner = THIS_MODULE,
.pm = &trf7970a_pm_ops, .pm = &trf7970a_pm_ops,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment