From 9d6c2dd5f864b8b1bfe2752f3ea26469b5ece3d8 Mon Sep 17 00:00:00 2001 From: Grant Likely Date: Mon, 1 Aug 2011 23:23:25 +0100 Subject: [PATCH] arm/tegra: Add more device tree nodes and clean up initialization Signed-off-by: John Bonesio Signed-off-by: Grant Likely --- sound/soc/tegra/tegra_das.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/tegra/tegra_das.c b/sound/soc/tegra/tegra_das.c index 9f24ef73f2cb3..4d1ea71d62364 100644 --- a/sound/soc/tegra/tegra_das.c +++ b/sound/soc/tegra/tegra_das.c @@ -239,11 +239,24 @@ static int __devexit tegra_das_remove(struct platform_device *pdev) return 0; } +#if defined(CONFIG_OF) +/* Match table for of_platform binding */ +static const struct of_device_id tegra_das_of_match[] __devinitconst = { + { .compatible = "nvidia,tegra20-das", }, + {}, +}; +MODULE_DEVICE_TABLE(of, tegra_das_of_match); +#else +#define tegra_das_of_match NULL +#endif + + static struct platform_driver tegra_das_driver = { .probe = tegra_das_probe, .remove = __devexit_p(tegra_das_remove), .driver = { .name = DRV_NAME, + .of_match_table = tegra_das_of_match, }, };