summaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-11-22 18:21:18 -0700
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-23 11:05:08 +0000
commit186bcda6f6217dc4b5353c3474121bc1194847f6 (patch)
treefc2ac1da5e5eb8d2f63f032140743d522aaad7a5 /sound/soc/tegra
parent85e7652d89293a6dab42bfd31f276f8bc072d4c5 (diff)
downloadop-kernel-dev-186bcda6f6217dc4b5353c3474121bc1194847f6.zip
op-kernel-dev-186bcda6f6217dc4b5353c3474121bc1194847f6.tar.gz
ASoC: Tegra DAS: Add device tree binding
Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r--sound/soc/tegra/tegra_das.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_das.c b/sound/soc/tegra/tegra_das.c
index fa3a442..5b82b4e 100644
--- a/sound/soc/tegra/tegra_das.c
+++ b/sound/soc/tegra/tegra_das.c
@@ -225,11 +225,18 @@ static int __devexit tegra_das_remove(struct platform_device *pdev)
return 0;
}
+static const struct of_device_id tegra_das_of_match[] __devinitconst = {
+ { .compatible = "nvidia,tegra20-das", },
+ {},
+};
+
static struct platform_driver tegra_das_driver = {
.probe = tegra_das_probe,
.remove = __devexit_p(tegra_das_remove),
.driver = {
.name = DRV_NAME,
+ .owner = THIS_MODULE,
+ .of_match_table = tegra_das_of_match,
},
};
module_platform_driver(tegra_das_driver);
@@ -238,3 +245,4 @@ MODULE_AUTHOR("Stephen Warren <swarren@nvidia.com>");
MODULE_DESCRIPTION("Tegra DAS driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" DRV_NAME);
+MODULE_DEVICE_TABLE(of, tegra_das_of_match);
OpenPOWER on IntegriCloud