]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/nfc/trf7970a.c
Merge remote-tracking branch 'spi/for-next'
[karo-tx-linux.git] / drivers / nfc / trf7970a.c
index 4036788c78b6edda97d00e83240b77d82958d8c2..f857feb2b573e7bb98e008f44527ed762d82b7a8 100644 (file)
@@ -2211,6 +2211,12 @@ static const struct dev_pm_ops trf7970a_pm_ops = {
                        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[] = {
        { "trf7970a", 0 },
        { }
@@ -2223,6 +2229,7 @@ static struct spi_driver trf7970a_spi_driver = {
        .id_table       = trf7970a_id_table,
        .driver         = {
                .name   = "trf7970a",
+               .of_match_table = of_match_ptr(trf7970a_of_match),
                .pm     = &trf7970a_pm_ops,
        },
 };